package
0.11.0
Repository: https://github.com/omni-network/omni.git
Documentation: pkg.go.dev

# README

merkle

This is a port of OpenZeppelin's JS merkle-tree library to Go. It excludes the StandardTree wrapper types since our use-case doesn't require it. It also moves all non-omni-required logic to the test package to decrease the surface area of the library.

# Functions

GetMultiProof returns a merkle-multi-proof for the given leaf indices.
MakeTree returns a merkle tree given the leaves.
StdLeafHash returns the standard leaf hash of the given data.

# Structs

MultiProof is a merkle-multi-proof for multiple leaves.

# Type aliases

DomainSeparationTag defines the domain of a single leaf in the tree.