Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-chain secret seals. New network/chain in invoices #118

Merged
merged 11 commits into from
Dec 30, 2023
Merged

Conversation

dr-orlovsky
Copy link
Member

Blind UTXO ("secret seals") was not properly supporting cross-chain seal definitions. This resulted in the bug where the accepted consignment was not recognized as its own state.

The core of the fix is in RGB-WG/rgb-core#199, as well as in BP-WG/bp-core#71

This required making blind UTXOs commit to the chain. I used this as an opportunity to embed multi-chain support to RGB invoices and combine it with testnet etc indications. So now, the beneficiary in the invoice ALWAYS contains information on both network and chain, using new prefixes: bc, tb, lq, tl etc:

  1. if the beneficiary is an address, it will look like bc:1pj6fx-pzy9gy-xl6mek-j7fxgm-h3frl5-fwulrf-lawxpt-vve6jv-h4vles-hh8wut or bc:18cBEM-RxXHqz-WWCxZN-tU91F5-sbUNKh-L5PX
  2. if the beneficiary is blind seal, now it will contain this additional prefx in front: bc:utxob:....

@dr-orlovsky dr-orlovsky added the bug Something isn't working label Dec 30, 2023
@dr-orlovsky dr-orlovsky added this to the v0.11.x milestone Dec 30, 2023
@dr-orlovsky dr-orlovsky merged commit 90335fb into master Dec 30, 2023
17 of 19 checks passed
@dr-orlovsky dr-orlovsky linked an issue Dec 30, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Provide an API for deterministic contract generation
1 participant