package
0.2501.0
Repository: https://github.com/oasisprotocol/oasis-core.git
Documentation: pkg.go.dev

# Functions

LoadFromHexBytes creates a new hash by loading it from the given CometBFT HexBytes byte array.
NewBuilder creates a new hash builder.
NewFrom creates a new hash by hashing the CBOR representation of the given type.
NewFromBytes creates a new hash by hashing the provided byte string(s).
NewFromReader creates a new hash by hashing data from the provided reader until EOF.

# Constants

Size is the size of the cryptographic hash in bytes.

# Variables

ErrMalformed is the error returned when a hash is malformed.
ErrTruncateSize is the error returned when trying to truncate a hash to an invalid size.

# Structs

Builder is a hash builder that can be used to compute hashes iteratively.

# Type aliases

Hash is a cryptographic hash over arbitrary binary data.