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

Missing WASM exports for hash.rs #289

Closed
SebastienGllmt opened this issue Dec 28, 2023 · 0 comments · Fixed by #292
Closed

Missing WASM exports for hash.rs #289

SebastienGllmt opened this issue Dec 28, 2023 · 0 comments · Fixed by #292
Labels
bug Something isn't working

Comments

@SebastienGllmt
Copy link
Contributor

It looks like all the hash utility functions are no longer exposed to WASM (hash_auxiliary_data, hash_transaction, hash_plutus_data, hash_script_data, calc_script_data_hash

@SebastienGllmt SebastienGllmt added the bug Something isn't working label Dec 28, 2023
rooooooooob added a commit that referenced this issue Dec 29, 2023
Fixes #289

For script data hashing we do not pass in the witness set encodings like
in the rust bindings. We might wish to expose the CBOR encodings
generally, or for this API we could have something that takes in the
entire witness set. This function is likely to be used more indirectly
via the builders anyway.
SebastienGllmt pushed a commit that referenced this issue Dec 29, 2023
* Add missing hashing/crypto WASM bindings

Fixes #289

For script data hashing we do not pass in the witness set encodings like
in the rust bindings. We might wish to expose the CBOR encodings
generally, or for this API we could have something that takes in the
entire witness set. This function is likely to be used more indirectly
via the builders anyway.

* calc_script_data_hash_from_witness()

* cargo fmt --all (cargo fmt left these)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant