Registry / crypto / celestiaorg-merkletree

celestiaorg-merkletree

JSON →
library0.0.0-20230308153949-c33506a7aa26gogounverified

Package merkletree provides tools for calculating Merkle roots, creating proofs, and verifying proofs according to RFC 6962, with support for cached subtrees.

go get github.com/celestiaorg/merkletree
INSTALL
IMPORT
SIG · CELESTIAORG-MERKLE
C
celestiaorg-merkletree
cryptogov0.0.0-20230308153949-c33506a7aa26
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.

merkletree
github.com/celestiaorg/merkletree

Creates a Merkle tree, pushes data, and computes the root.

package main import ( "fmt" "github.com/celestiaorg/merkletree" ) func main() { tree := merkletree.New() tree.Push([]byte("data1")) tree.Push([]byte("data2")) root := tree.Root() fmt.Printf("Merkle root: %x\n", root) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230308153949-c33506a7aa26latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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