Registry / utility / filecoin-project-go-hamt-ipld-v2

filecoin-project-go-hamt-ipld-v2

JSON →
library2.0.0gogounverified

Package hamt provides a reference implementation of the IPLD HAMT used in the Filecoin blockchain with CHAMP mutation semantics.

go get github.com/filecoin-project/go-hamt-ipld/v2
INSTALL
IMPORT
SIG · FILECOIN-PROJECT-G
F
filecoin-project-go-hamt-ipld-v2
utilitygov2.0.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.

hamt
✓ github.com/filecoin-project/go-hamt-ipld/v2

Create a new HAMT node and set a key-value pair.

package main import ( "fmt" hamt "github.com/filecoin-project/go-hamt-ipld/v2" ) func main() { store := hamt.NewCborStore() node, err := hamt.NewNode(store, hamt.UseTreeBitWidth(5)) if err != nil { panic(err) } err = node.Set(context.Background(), "key", "value") if err != nil { panic(err) } fmt.Println("HAMT node created") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
filecoin-project-go-hamt-ipld-v2 — go get filecoin-project-go-hamt-ipld-v2 · libregistry