Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 source pure

Package merkle verifies sorted-pair SHA-256 Merkle proofs with domain-separated leaves.

Overview

Package merkle verifies sorted-pair SHA-256 Merkle proofs with domain-separated leaves.

Constants 1

Variables 1

var ErrHash

1var ErrHash = errors.New("launchpad/merkle: hash must be 64 hex characters")
source

Functions 7

func Verify

1func Verify(root, leaf Hash, proof []Hash) bool
source

func Proof

1func Proof(leaves []Hash, index int) []Hash
source

Types 1

Imports 5

  • bytes stdlib
  • crypto/sha256 stdlib
  • encoding/hex stdlib
  • errors stdlib
  • strings stdlib

Source Files 2