storacha-network / w3up

⁂ w3up protocol implementation
https://github.com/storacha-network/specs
Other
54 stars 19 forks source link

fix!: use MultihashDigest type in stores #1474

Closed alanshaw closed 2 months ago

alanshaw commented 3 months ago

This forces callers to decode Uint8Arrays that may come from user input before the storage method is called and that means we don't just use them without validation that they are actually a multihash.

BREAKING CHANGE: AllocationsStorage and BlobsStorage methods not take MultihashDigest types instead of Uint8Arrays.