blake2b

package
v2.0.0-...-ad76cac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package blake2b implements the BLAKE2b cryptographic hash function, with optimized variants for hashing Merkle tree inputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SumLeaf

func SumLeaf(leaf *[64]byte) [32]byte

SumLeaf computes the Merkle tree leaf hash of a single leaf.

func SumLeaves

func SumLeaves(outs *[4][32]byte, leaves *[4][64]byte)

SumLeaves computes the Merkle tree leaf hash of four leaves, storing the results in outs.

func SumNodes

func SumNodes(outs *[4][32]byte, nodes *[8][32]byte)

SumNodes computes the Merkle roots of four pairs of node hashes, storing the results in outs.

func SumPair

func SumPair(left, right [32]byte) [32]byte

SumPair computes the Merkle root of a pair of node hashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL