Registry / crypto / celestiaorg-nmt

celestiaorg-nmt

JSON →
library0.24.3gogounverified

An implementation of Namespace Merkle Trees (NMT) for verifiable data availability in blockchain systems.

go get github.com/celestiaorg/nmt
INSTALL
IMPORT
SIG · CELESTIAORG-NMT
C
celestiaorg-nmt
cryptogov0.24.3
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.

nmt
github.com/celestiaorg/nmt

Build a Namespace Merkle Tree and compute its root.

package main import ( "fmt" "github.com/celestiaorg/nmt" ) func main() { data := [][]byte{[]byte("leaf1"), []byte("leaf2")} tree := nmt.New(sha256.New(), nmt.NamespaceIDSize(8)) for _, d := range data { tree.Push(d) } root := tree.Root() fmt.Printf("%x\n", root) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
Amazon
1
Resources
celestiaorg-nmt — go get celestiaorg-nmt · libregistry