Registry / crypto / filecoin-project-go-fil-commcid

filecoin-project-go-fil-commcid

JSON →
library0.3.1gogounverified

Package commcid provides helpers to convert between Piece/Data/Replica Commitments and their CID representation.

go get github.com/filecoin-project/go-fil-commcid
INSTALL
IMPORT
SIG · FILECOIN-PROJECT-G
F
filecoin-project-go-fil-commcid
cryptogov0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

commcid
github.com/filecoin-project/go-fil-commcid

Convert a piece commitment to a CID.

package main import ( "fmt" "github.com/filecoin-project/go-fil-commcid" ) func main() { cid, _ := commcid.PieceCommitmentV1ToCID([]byte{0x01, 0x02}) fmt.Println(cid) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
107 hits · last 30 days
node
104
Resources
filecoin-project-go-fil-commcid — go get filecoin-project-go-fil-commcid · libregistry