RGB Core Library: consensus validation for private & scalable client-validated smart contracts on Bitcoin & Lightning
RGB Core Library
RGB is confidential & scalable client-validated smart contracts for Bitcoin & Lightning. To learn more about RGB please check [RGB website][Site].
RGB Core library provides consensus-critical and validation code for RGB. It is a standard implementation, jointly with [LNP/BP Standards][LNPBPs] defining RGB consensus and validation rules.
The consensus-critical code library is shared with the following libraries:
- [Client-side-validation Lib][Foundation]. It is
- [BP Core Lib][BP]. This is client-side-validation applied to bitcoin protocol
- [AluVM virtual machine][AluVM] used by RGB for Turing-complete smart contract
- [Strict types][StrictTypes], defining memory layout and serialization of
The development of the project is supported and managed by [LNP/BP Standards Association][Association]. The design of RGB smart contract system and implementation of this and underlying consensus libraries was done in 2019-2024 by [Dr Maxim Orlovsky][Max] basing or earlier ideas of client-side-validation and RGB as "assets for bitcoin and LN" by [Peter Todd][Todd] and [Giacomo Zucco][Zucco]. Upon the release of RGBv1 the protocol will be immutable and this library will accept only bugfixes; i.e. it will be ossified by requiring consensus ACK for the new changes across the large set of maintainers.
The current list of the projects based on the library include:
- [RGB Standard Lib][RGB Std]: library providing high-level RGB smart contract
- [RGB Wallet][RGB Wallet]: runtime and command-line tool for working with RGB.
Contributing
Currently, library functionality is frozen and as a part of ossification only bugfixes are accepted.
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.
[LNPBPs]: https://github.com/LNP-BP/LNPBPs [Association]: https://lnp-bp.org [Site]: https://rgb.tech [Foundation]: https://github.com/LNP-BP/clientsidevalidation [BP]: https://github.com/BP-WG/bp-core [AluVM]: https://www.aluvm.org [StrictTypes]: https://www.strict-types.org [RGB Std]: https://github.com/RGB-WG/rgb-std [RGB Wallet]: https://github.com/RGB-WG/rgb [Max]: https://dr.orlovsky.ch [Todd]: https://petertodd.org/ [Zucco]: https://giacomozucco.com/