#lnp-bp #bitcoin #smart-contracts

bin+lib rgb-schemata

Collection of the official RGB smart contract schemata

17 releases

new 0.11.1-alpha.2+unreviewed May 1, 2025
0.11.1-alpha.1 Feb 21, 2025
0.11.0-beta.9 Nov 19, 2024
0.11.0-beta.6 Jun 8, 2024
0.10.0-rc.3 Jul 27, 2023

#14 in #lnp-bp

Download history 7/week @ 2025-01-08 30/week @ 2025-01-15 18/week @ 2025-01-22 26/week @ 2025-02-05 35/week @ 2025-02-12 358/week @ 2025-02-19 86/week @ 2025-02-26 22/week @ 2025-03-05 46/week @ 2025-03-12 32/week @ 2025-03-19 46/week @ 2025-03-26 65/week @ 2025-04-02 50/week @ 2025-04-09 9/week @ 2025-04-16 34/week @ 2025-04-23

168 downloads per month
Used in rgb-lib

Apache-2.0

90KB
629 lines

Collection of official RGB schemata

Build Tests Lints

crates.io Docs Apache-2 licensed

This repository provides rust source code and compiled versions of RGB contract schemata recommended for the use by contract developers.

RGB is confidential & scalable client-validated smart contracts for Bitcoin & Lightning. To learn more about RGB please check RGB blueprint and RGB FAQ websites.

The development of the project is supported and managed by LNP/BP Standards Association.

Catalog

This repository provides the following RGB schemata:

  • Non-inflatable assets (NIA), implementing RGB20 interface. This is the simplest form of a fungible asset/token, which doesn't provide such features as secondary issue, ability to change asset name and parameters, ability to burn or replace the asset.

  • Unique digital asset (UDA), implementing RGB21 interface. This is the simplest form of an NFT, which has one issuance of a single non-fungible and non-fractionable token with a representative attached media file and a preview.

  • Collectible fungible assets (CFA), implementing RGB25 interface. This is the simplest form of collectible fungible assets

Library

The library can be integrated into other rust projects via Cargo.toml [dependecies] section:

rgb-schemata = "0.10.0"

MSRV

Minimum supported rust compiler version (MSRV): 1.66, rust 2021 edition.

License

See LICENCE file.

Dependencies

~16MB
~287K SLoC