23 unstable releases (5 breaking)

0.9.0 Feb 2, 2023
0.9.0-rc.1 Dec 27, 2022
0.8.0 Nov 19, 2022
0.8.0-rc.4 Jul 30, 2022
0.4.0 Mar 14, 2021

#122 in #lightning


Used in 5 crates

MIT license

105KB
2K SLoC

RGB-20 Library

RGB20 is an RGB schema for fungible digital assets on bitcoin & lightning.

This repository provides rust library and a command-line utility rgb20 which can be used alongside RGB Node to generate and parse RGB20 data (schema, issue assets, interpret contract information returned by RGB Node).

Command-line utility

Install with Docker

Build

Clone the repository and checkout to the desired version (here v0.8.0-rc.3):

$ git clone https://github.com/RGB-WG/rust-rgb20
$ cd rust-rgb20
$ git checkout v0.8.0-rc.3

Build and tag the Docker image:

$ docker build -t rgb20:v0.8.0-rc.3 .

Usage

$ docker run rgb20:v0.8.0-rc.3 --help

lib.rs:

RGB20 library for working with fungible asset types, operating under schemata, defined with LNPBP-20 standard:

  • Root RGB20 schema, returned by [schema::schema()] with id SCHEMA_ID_BECH32
  • RGB20 subschema, returned by [schema::subschema()], prohibiting asset replacement procedure and having id SUBSCHEMA_ID_BECH32
  • High-level RGB20 API performing asset issuance, transfers and other asset-management operations

Dependencies

~19–31MB
~380K SLoC