Registry / crypto / filecoin-project-go-fil-commp-hashhash

filecoin-project-go-fil-commp-hashhash

JSON →
library0.4.0gogounverified

A Go library for calculating Filecoin Unsealed Commitment (commP/commD) using a hash.Hash interface.

go get github.com/filecoin-project/go-fil-commp-hashhash
INSTALL
IMPORT
SIG · FILECOIN-PROJECT-G
F
filecoin-project-go-fil-commp-hashhash
cryptogov0.4.0
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.

commp
github.com/filecoin-project/go-fil-commp-hashhash

Compute a Filecoin commitment hash from data.

package main import ( "fmt" "github.com/filecoin-project/go-fil-commp-hashhash" ) func main() { var h commp.Hash data := []byte("hello world") h.Write(data) digest := h.Sum(nil) fmt.Printf("%x\n", digest) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources