ucan-wg / rs-ucan

Rust implementation of UCAN
Apache License 2.0
63 stars 15 forks source link

Support generic hashes #88

Closed jsantell closed 1 year ago

jsantell commented 1 year ago

The TryFrom<&Ucan> for Cid trait implicitly hardcodes a hasher (blake2b, or blake3 via #85). This is used (only?) by UcanBuilder::witnessed_by and UcanBuilder::delegating_from to encode proofs as cids, requiring consumers to use whatever encoding is used in the Ucan->Cid trait if using the builder.