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

refactor: support roundtrip encoding for script data hash components #526

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

scarmuega
Copy link
Member

@scarmuega scarmuega commented Oct 22, 2024

Computing "script data hash" requires redemeers, witness-set datums and language views.

To make the hash consistent across encoding roundtrips, this PR replaces some internal structs in the primitives with CBOR-aware structs (eg: MaybeIndexArray).

A following PR will introduce the hash compute logic.

@scarmuega scarmuega merged commit 537cd45 into main Oct 22, 2024
7 checks passed
@scarmuega scarmuega deleted the refactor/support-script-data branch October 22, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

1 participant