8000 util: add Sha256dEncoder to allow streaming data into a hash by apoelstra · Pull Request #33 · rust-bitcoin/rust-bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

util: add Sha256dEncoder to allow streaming data into a hash #33

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

Merged
merged 1 commit into from
Dec 7, 2017

Conversation

apoelstra
Copy link
Member

This is needed to for a sane BIP143 implementation. Should be exactly equivalent to
serializing data into a vector then hashing that vector for all types.

This is needed to for a sane BIP143 implementation. Should be exactly equivalent to
serializing data into a vector then hashing that vector for all types.
@instagibbs
Copy link
Contributor

add a bool test?

@apoelstra
Copy link
Member Author

let test = vec![true, false, true, true, false]; is a bool test.

@instagibbs
Copy link
Contributor

ah yea, missed that. utACK

@jonasnick
Copy link
Contributor

ACK

@apoelstra apoelstra merged commit 49d39a0 into master Dec 7, 2017
Tibo-lg pushed a commit to p2pderivatives/rust-bitcoin that referenced this pull request Sep 1, 2020
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.

3 participants
0