storacha / storage

🐔 Storacha Storage Node
https://storacha.network
Other
1 stars 0 forks source link

Add utilities for piece hashes #18

Closed hannahhoward closed 2 weeks ago

hannahhoward commented 4 weeks ago

Goals

So great news, state of piececid v2 in goland is a mess, so I ported everything from JS data-segment to go

Implementation

There are mild variations and I took the code in @aschmahmann 's unmerged PR but basically this gives us a PieceDigest and PieceLink analogous to the types in JS data-segment.

For Discussion

Needs tests

alanshaw commented 2 weeks ago

Can be closed @hannahhoward? ...becasue we have https://github.com/storacha/go-piece