package registry
import "github.com/google/trillian/merkle/hashers/registry"
Package registry provides a global registry for hasher implementations.
Index ¶
- func NewLogHasher(h trillian.HashStrategy) (hashers.LogHasher, error)
- func NewMapHasher(h trillian.HashStrategy) (hashers.MapHasher, error)
- func RegisterLogHasher(h trillian.HashStrategy, f hashers.LogHasher)
- func RegisterMapHasher(h trillian.HashStrategy, f hashers.MapHasher)
Functions ¶
func NewLogHasher ¶
func NewLogHasher(h trillian.HashStrategy) (hashers.LogHasher, error)
NewLogHasher returns a LogHasher.
func NewMapHasher ¶
func NewMapHasher(h trillian.HashStrategy) (hashers.MapHasher, error)
NewMapHasher returns a MapHasher.
func RegisterLogHasher ¶
func RegisterLogHasher(h trillian.HashStrategy, f hashers.LogHasher)
RegisterLogHasher registers a hasher for use.
func RegisterMapHasher ¶
func RegisterMapHasher(h trillian.HashStrategy, f hashers.MapHasher)
RegisterMapHasher registers a hasher for use.
Source Files ¶
- Version
- v1.3.13
- Published
- Feb 16, 2021
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 3 hours ago –
Tools for package owners.