solana_program

Module hash

Source
Expand description

Hashing with the SHA-256 hash function, and a general Hash type.

Structs§

Hash
A hash; the 32-byte output of a hashing algorithm.
Hasher

Enums§

ParseHashError

Constants§

HASH_BYTES
Size of a hash in bytes.

Functions§

extend_and_hash
Return the hash of the given hash extended with the given value.
hash
Return a Sha256 hash for the given data.
hashv
Return a Sha256 hash for the given data.