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

Support arbitrary Blake3 sizes #130

Open
vmx opened this issue Jun 10, 2021 · 2 comments
Open

Support arbitrary Blake3 sizes #130

vmx opened this issue Jun 10, 2021 · 2 comments

Comments

@vmx
Copy link
Member

vmx commented Jun 10, 2021

In rust-multihash the digests are generic over their size. It should be possible to support arbitrarily sized Blake3 hashes. Currently the code will panic if you try a size differently from 256 bits.

@vmx vmx mentioned this issue Jun 10, 2021
@vmx
Copy link
Member Author

vmx commented Jun 11, 2021

Adding a different Blake3 size to the custom table example would be great.

@mriise
Copy link
Contributor

mriise commented Feb 2, 2022

#156 solves part of this, as the hasher Blake3<S> is exposed, though going through the table doesn't work as the proc macro expects a type without a generic.

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

2 participants