2 unstable releases
0.2.0 | Feb 6, 2023 |
---|---|
0.1.0 | Nov 29, 2022 |
#101 in #nft
38KB
680 lines
RGB-121 Library
⚠️ Warning: this is a work in progress
RGB121 is an RGB schema for collectibles on bitcoin & lightning.
This repository provides rust library and a command-line utility rgb121
which
can be used alongside RGB Node to generate and parse RGB121 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.1.0
):
$ git clone https://github.com/RGB-Tools/rust-rgb121
$ cd rust-rgb121
$ git checkout v0.1.0
Build and tag the Docker image:
$ docker build -t rgb121:v0.1.0 .
Usage
$ docker run rgb121:v0.1.0 --help
lib.rs
:
RGB121 library for working with fungible asset types, operating under schemata, defined with LNPBP-121 standard:
- Root RGB121 schema, returned by [
schema::schema()
] with idSCHEMA_ID_BECH32
- RGB121 subschema, returned by [
schema::subschema()
], prohibiting asset replacement procedure and having idSUBSCHEMA_ID_BECH32
- High-level RGB121 API performing asset issuance, transfers and other asset-management operations
Dependencies
~17–26MB
~342K SLoC