RGB
Smart contract for Bitcoin
Currently maitained by LNP/BP Standards Association
RGB: scalable & private smart contracts for bitcoin & lightning
RGB | Private & scalable smart contracts for Bitcoin and Lightning Network
While being separately maintained, RGB contracts may interact via Bifrost protocol over the Lightning Network, allowing multiparty coordinated state changes, which, for instance, enables functionality like DEX over Lightning etc.
LNP-BP/presentations: Slides, visuals and video links that explain Bitcoin L2/L3 technological stack development, curated by LNP/BP Standards Association
ここみるのが一番良さそう?
Wallet
https://play.google.com/store/apps/details?id=com.iriswallet.testnet
RGB -
Design - RGB Docs
複数の state changes を markle tree にして commit する仕様がある
Bulletproofs により金額は隠すことができる
Resources - RGB
Understanding the RGB protocol. Disclaimer: for education purposes some… | by Federico Tenga | Medium
これわかりやすかった
基本コンセプト
RGB Token を送金するに RGB tx を bitcoin utxo に commit する
RGB tx の中身は、Input となる bitcoin utxo と Output となる bitcoin utxo
RGB tx の Output 先は commit する utxo とは別でよい
Taro は tx commit するというよりかは、新しい state を commit する感じ?
状態変更の条件となる contract にはいくつかのベースとなる schema があり、LNP-BP として定義されている
将来的には、token を受け取るときに utxo を送金者に知られない仕組みを予定している
Blinding secrets
特定の UTXO への送金を止めることができないので、検閲耐性が高まる
これは rgb-sandbox のデモではすでに動いている
RGB testnet & mainnet - RGB FAQ
So, even though you can already make even real-value transfers on RGB using Bitcoin mainnet as a commitment layer (there are no technical limitations that can prevent you from doing it), we strongly do not recommend it,
LNPBP-11: RGB consensus - LNP/BP Standards
RGB Blackpaper - RGB Blackpaper
RGB protocol での転送(transfer) | もなか | Spotlight
Grunch | A brief introduction to RGB protocols
Integration with LN
Lightning Network compatibility - RGB Docs
BOLT に変更は不要。ただし既存の実装はまだ対応してはいない。
LNP-WG/lnp-node: Lightning network protocol daemon (suitable for generalized Lightning Network)
実際にどのようなデータが commit されるのか?
これ以上はコード読むしかなさそう
node の実装を読むのがよいのではないだろうか
RGB-WG/rgb-node: RGB node - an official implementation which can run on servers, desktops and mobiles
Bifrost
Bifrost - RGB FAQ
Schema
Contracts - RGB Docs
5. Contracts, state & operations - RGB Blackpaper
client side validations
送受金には相手がオンラインでないといけない?