opencontainers / go-digest

Common digest package used across the container ecosystem
https://www.opencontainers.org/
Other
185 stars 59 forks source link

blake3 is a variable output algorithm, so is this blake3-256? #104

Open rchincha opened 1 month ago

rchincha commented 1 month ago

https://github.com/opencontainers/go-digest/blob/22b78e47854adc56477927aba5f4c930b56af8c9/algorithm.go#L98

https://github.com/zeebo/blake3/blob/master/api.go#L17 ^ does appear to default to 256-bit output, but would still make this mnemonic explicit

rchincha commented 1 month ago

A shorter mnemonic such as "b3-256" would be nicer, but runs the risk of name collision with a "barfoo3-256" hash func.