kaiwolfram / rgb-std

RGB standard library in rust languague

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RGB Standard Library

Build Tests Lints codecov

crates.io Docs unsafe forbidden MIT licensed

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

RGB standard library provides non-consensus-critical high-level API for RGB applications. It is based on RGB Core Lib, implementing validation and consensus rules for RGB smart contracts.

The development of the project is supported and managed by LNP/BP Standards Association. The design of RGB smart contract system and implementation of this and underlying consensus libraries was done in 2019-2022 by Dr Maxim Orlovsky basing or earlier ideas of client-side-validation and RGB as "assets for bitcoin and LN" by Peter Todd and Giacomo Zucco.

Nodes, implementing RGB functionality and using this library include:

  • RGB Node: standalone & embeddable node for running RGB.
  • MyCitadel Node: wallet node providing RGB smart contract functionality integrated with Lightning network, bitcoin blockchain indexers, decentralized data storage and propagation (Storm) and wallet services. It can run as embedded, desktop, server or cloud-based node.

Use

As library

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

rgb-std = "0.8.0"

If the library will be used for wallet applications and work with PSBT files, than use wallet feature, which is non-default:

[dependencies]
rgb-core = { version = "0.8", features = ["wallet"] }

For serialization purposes library provides serde feature, which is turned off by default.

Aso command-line tool

The library also provides small command-line tool for hacking and debugging RGB related data structures. In order to compile the tool you have to run the following commands:

rustup update
cargo install rgb-std

MSRV

Minimum supported rust compiler version (MSRV): 1.59, rust 2022 edition.

Contributing

Altcoins and "blockchains" other than Bitcoin blockchain/Bitcoin protocols are not supported and not planned to be supported; pull requests targeting them will be declined.

License

See LICENCE file.

About

RGB standard library in rust languague

License:MIT License


Languages

Language:Rust 100.0%