-
Notifications
You must be signed in to change notification settings - Fork 1
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
verify and publish do not use generic YAMF hashes #17
Comments
Yeah, good point.
Nah, not really. I think it's just me being lazy because there's only one yamf-hash type at the moment. |
More thoughts: What are the use cases?
|
Also, you can't make something generic over a variant of an enum. So But I'm sure we can satisfy the use-cases we want, just not with generics. |
To revisit this: Current state:
Some possible ways forward:
|
I don't care about existing bamboo entries and I don't know of anybody who does (yet) :D Anyway, my guess is that
is the least controversial and most pragmatic option because it wouldn't require changing the original YAMF spec. |
While
decode
andencode
accepts any YAMF hash format, the methodsverify
andpublish
seem to be hard-coded to only support the BLAKE2b case:I'm not sure if
publish
andverify
are meant to be opinionated implementations against the more low-level methods of the library, but wanted to bring up that they could also be made more generic to support all YAMF formats?The text was updated successfully, but these errors were encountered: