BRC21
A POC implementation for the BRC-21 Token Standard.
note
This is not production-ready code and is only meant to be used for experimentation.
Basic Protocol
The basic protocol is as follows:
Minting
- Mint the locked tokens on Bitcoin via an inscription
- Lock the underlying token in the smart contract and provide proof that the inscription locks the same amount of tokens
Indexers now accept the Bitcoin-minted BRC21 as minted
Transfer
- Transfer BRC21 just like a BRC20 on Bitcoin
Redeeming
- Redeem BRC21 on Bitcoin
- Proof BRC21 redeem to this contract and unlock tokens
Reference
See the full protocol at https://interlay-labs.gitbook.io/brc-21/
Follow the Example
Go to the brc21-poc
directory to follow the example.