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

feat(traverse): Provide access to original Datum hash #189

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

scarmuega
Copy link
Member

No description provided.

@scarmuega scarmuega marked this pull request as ready for review September 12, 2022 21:36
pub vkeywitness: Option<Vec<VKeyWitness>>,

#[n(1)]
pub native_script: Option<Vec<NativeScript>>,
Copy link
Member

@jmhrpr jmhrpr Sep 13, 2022

Choose a reason for hiding this comment

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

Should we use KeepRaw for NativeScript? When we decode a NativeScript into an internal representation we decode both definite and indefinite arrays, but we encode to definite. The hash needs to match the original bytes so that the script hash matches addresses in the inputs.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, there are lot of sub-structures that will need this treatment. Off the top of my head, redeemers and metadata. I would prefer to treat each one on a different PR.

Copy link
Member

@jmhrpr jmhrpr left a comment

Choose a reason for hiding this comment

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

LGTM

@scarmuega scarmuega merged commit 85cf02d into main Sep 13, 2022
@scarmuega scarmuega deleted the feat/datum-original-hash branch September 13, 2022 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants