Registry / other / filecoin-project-go-amt-ipld-v3

filecoin-project-go-amt-ipld-v3

JSON →
library3.1.1gogounverified

Package amt provides a reference implementation of the IPLD AMT (Array Mapped Trie) used in the Filecoin blockchain.

go get github.com/filecoin-project/go-amt-ipld/v3
INSTALL
IMPORT
SIG · FILECOIN-PROJECT-G
F
filecoin-project-go-amt-ipld-v3
othergov3.1.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.

amt
github.com/filecoin-project/go-amt-ipld/v3

Creates an AMT, sets a value at index 0, and retrieves it.

package main import ( "fmt" "github.com/filecoin-project/go-amt-ipld/v3" ) func main() { a, _ := amt.NewAMT(nil, amt.UseTreeBitWidth(3)) a.Set(nil, 0, []byte("value")) val, _ := a.Get(nil, 0) fmt.Println(string(val)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
filecoin-project-go-amt-ipld-v3 — go get filecoin-project-go-amt-ipld-v3 · libregistry