package
0.0.0-20210712090754-55a2f5289189
Repository: https://github.com/d-platformoperatingsystem/dpos.git
Documentation: pkg.go.dev

# Functions

CalcMerkleRoot merkle .
CalcMerkleRootCache merkle .
CalcMultiLayerMerkleInfo merkle hash hash .
Computation This implements a constant-space merkle root/path calculator, limited to 2^32 leaves.
Decode decodes the byte-reversed hexadecimal string encoding of a Hash to a destination.
GetHashFromTwoHash hash hash.
GetMerkleBranch txindex branch position 0 .
GetMerkleRoot 256 , n * step = hashes (hashes / n).
GetMerkleRootAndBranch merkle roothash tx index branch, :position 0 .
GetMerkleRootFromBranch branch roothash txhash proof .
NewHash returns a new Hash from a byte slice.
NewHashFromStr creates a Hash from a hash string.

# Constants

HashSize hash.
MaxHashStringSize hash.

# Variables

ErrHashStrSize error.

# Type aliases

Hash.