Proposal to unlocking blind utxo#204
Conversation
fcedeff to
f666b79
Compare
|
Hi @zoedberg , I found the bug. I did not save the new transition in transitions and transition_txid tables. Also, I added the CloseMethod property at the Contract state before spend asset: Contract state after spend asset: I was able to spend an asset received, and I used the change address twice. I made the tests with branch bellow (I merged the PS: I tested only tapret dbc. I will start tests with opret (I never used this). |
|
@dr-orlovsky this branch only can merged after merge branch #195. Thanks! |
cryptoquick
left a comment
There was a problem hiding this comment.
Just some nits, also, can you create steps in the demo-rgb.sh to test this as a form of smoke test?
|
thanks @crisdut, I confirm you solved the issue I reported and now all rgb-lib tests are passing :) |
f666b79 to
710260c
Compare
Thanks for reviewing @cryptoquick! I will start writing the steps, and I'll let you know when I finish them. |
|
Hi @cryptoquick, The instructions: https://github.com/crisdut/nodes/tree/feat/unlocking-blind-utxo |
cryptoquick
left a comment
There was a problem hiding this comment.
Just reviewed your changes. Looks good!
cryptoquick
left a comment
There was a problem hiding this comment.
Just realized something, the lints are failing.
Be sure to run: cargo clippy
710260c to
8ba7077
Compare
|
I have merged #195, so I assume this needs rebase. Regarding the question from there, which has caused this PR: why would we need two methods instead of one? Well, there was a clear reason, since I have started with just one method and it didn't worked that way, so I had to made two. I am currently sick and my head is not working properly, so I can't recall what was the problem that caused splitting method in two. It could be that it was related to multisig wallets and interactivity required for managing stash under multisig wallets, such that all parties should do one of these two procedures before any of them would proceed to the second one - or something like that. I will try to re-analyse and recall better once I will recover. |
Yes, you are correct.
I am unsure about this question because I followed the recommendations about extending the method If your question refers to why |
|
You got me wrong: it was not my question but a quote of Zoe question from here #195 (comment) And I tried to answer that |
8ba7077 to
d3b08b7
Compare
|
Hi @dr-orlovsky, I fix the PR. Can you review this code, please? |
dr-orlovsky
left a comment
There was a problem hiding this comment.
My initial undetstanding was that RGB Node has to keep the blind UTXO secrets it had generated before and use them internally not requiring the client to provide. I do not remember at this moment does the blind UTXO created by the node - or using RGB libs on a wallet side. If the first is correct, than I would have to re-work this PR and complete that workflow. If not, this PR is overall correct - excluding few points I address in the code review comments
Currently, the blind utxo is created with
Done |
d3b08b7 to
2954e69
Compare
cryptoquick
left a comment
There was a problem hiding this comment.
Looks like all the linter checks have passed. Clippy is super helpful. LGTM!
|
Merged. Thank you very much for fixing this thing |


In addition to the changes in #195, I decided to make a change in
consume_transferto unlocking utxo blinding.