package coniks
import "github.com/google/trillian/merkle/coniks"
Package coniks provides CONIKS hashing for maps.
Index ¶
Variables ¶
var ( // Default is the standard CONIKS hasher. Default = New(crypto.SHA512_256) )
Domain separation prefixes
Types ¶
type Hasher ¶
Hasher implements the sparse merkle tree hashing algorithm specified in the CONIKS paper.
func New ¶
New creates a new hashers.TreeHasher using the passed in hash function.
func (*Hasher) BitLen ¶
BitLen returns the number of bits in the hash function.
func (*Hasher) EmptyRoot ¶
EmptyRoot returns the root of an empty tree.
func (*Hasher) HashChildren ¶
HashChildren returns the internal Merkle tree node hash of the two child nodes l and r. The hashed structure is H(l || r).
func (*Hasher) HashEmpty ¶
HashEmpty returns the hash of an empty subtree with the given root.
func (*Hasher) HashLeaf ¶
HashLeaf calculate the merkle tree leaf value: H(Identifier || treeID || depth || index || dataHash)
Source Files ¶
- Version
- v1.7.1 (latest)
- Published
- Jan 9, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 5 days ago –
Tools for package owners.