[][src]Crate ckb_hash

CKB default hash function.

CKB uses blake2b with following configurations as the default hash function.

  • output digest size: 32
  • personalization: ckb-default-hash

Structs

Blake2b
Blake2bBuilder

Constants

BLAKE2B_LEN

Output digest size.

BLANK_HASH

The hash output on empty input.

CKB_HASH_PERSONALIZATION

Blake2b personalization.

Functions

blake2b_256

Hashes the slice of binary and returns the digest.

new_blake2b

Creates a new hasher.