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

#922 in Magic Beans

Download history 46/week @ 2022-11-27 31/week @ 2022-12-04 67/week @ 2022-12-11 55/week @ 2022-12-18 91/week @ 2022-12-25 54/week @ 2023-01-01 84/week @ 2023-01-08 94/week @ 2023-01-15 61/week @ 2023-01-22 86/week @ 2023-01-29 83/week @ 2023-02-05 71/week @ 2023-02-12 114/week @ 2023-02-19 103/week @ 2023-02-26 55/week @ 2023-03-05 77/week @ 2023-03-12

351 downloads per month
Used in 6 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

~18MB
~325K SLoC