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

Map witness datums to tx outputs and inputs in utxorpc module #547

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alekswithakayy
Copy link
Contributor

Before a certain point in time, datums were provided in a txs witness set and not directly attached to the outputs.

As a utxorpc client, it is very difficult to figure out which datums correspond to which outputs since it would require hashing the datums in the witness set which are not in their raw form.

This PR performs the mapping of witness set datums to their corresponding outputs in the utxorpc module alleviating this hardship.

Note: This implementation works but I expect there might be a better way to things. One additional improvement would be adding the original cbor in addition to the payload but I wasn't sure how best to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant