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

Should we keep the possibility of witness txn to contain the output which has an asset that Alice transfers to Bob? #32

Closed
UkolovaOlga opened this issue Jun 28, 2020 · 1 comment
Labels
[CSV] Client-side validation-related specs
Milestone

Comments

@UkolovaOlga
Copy link
Member

Witness transaction - a txn that contains the commitment; is a part of single use seal witness.

Intro

RGB uses bitcoin transactions in 2 ways:
1st - to put commitments to what happens with RGB off-chain (commit to each transfer which is also called 'state transition') into the bitcoin transaction.
2nd - to use UTXO to allocate some state to, in particular to allocate some assets to this output. And when this output is spent, it means that Alice actually did a transfer of that asset and the txn that spends this output, must contain the commitment (meaning it should be a witness txn).

Basically Alice is using 2 bitcoin transactions: one she needs to assign asset to, other - the witness transaction. Key idea from the early days was to combine these 2 transactions into 1, meaning that the witness transaction may contain the output which contains the asset that Alice is transferring to Bob, meaning that Alice assigns the asset not to some other existing transaction output, but to the output that will be created by Alice. 


The question is if we need to keep this opportunity?

Raised during the dev call on June 24th, 2020

@dr-orlovsky dr-orlovsky transferred this issue from LNP-BP/devcalls Jul 12, 2020
@dr-orlovsky
Copy link
Member

Decision: we need it (see discussion during the last call)

@dr-orlovsky dr-orlovsky moved this from Agenda to Implemented / Done in Development Calls Agenda Jul 15, 2020
@dr-orlovsky dr-orlovsky added this to the CSV: drafts milestone Sep 15, 2020
@dr-orlovsky dr-orlovsky added the [CSV] Client-side validation-related specs label Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[CSV] Client-side validation-related specs
Projects
No open projects
Development Calls Agenda
  
Implemented / Done
Development

No branches or pull requests

2 participants