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

Consider changing witness types from hash to btree #82

Closed
SebastienGllmt opened this issue Jul 15, 2022 · 0 comments
Closed

Consider changing witness types from hash to btree #82

SebastienGllmt opened this issue Jul 15, 2022 · 0 comments

Comments

@SebastienGllmt
Copy link
Contributor

Currently, in the witness builder we use HashSet. However, we've been told btrees may be easier to use

For instance I generate a tx with the tx builder. Then I take the witness set and merge it with a new one where I only added vkeys. But the order of redeemers and datums could be different now and so it would change the script data hash.
I realised it could make more sense to order Datums and redeemers in the function where I calculate the hash
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

No branches or pull requests

1 participant