Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

add process_disclosure API #207

Merged
merged 2 commits into from
Sep 30, 2022
Merged

Conversation

zoedberg
Copy link
Contributor

Closes #206 by adding an API, process_disclosure, that gets the transfer TXID ad uses it to retrieve its associated disclosure and process it saving all relevant data into the DB.

Moreover this PR introduces a commit that changes the key used to save BUNDLES into the DB, from the witness_txid to a chunk of contract_id and witness_txid, allowing the send of more assets with the same TX.

I haven't added a CLI command for the new API yet, since I'm not sure the API and related naming will be accepted, but once we'll agree on details I will be happy to add that.

Copy link
Member

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 2e165b5

Wow, really clearly and well-written! Thank you!

@dr-orlovsky dr-orlovsky merged commit 69219e9 into RGB-WG:master Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot spend assets moved with Blank transitions
2 participants