Expand description

This package has been deprecated. Please use sp-crypto-hashing-proc-macro.

Removal scheduled after June 2024.

Macros§

  • Process a Blake2 64-bit hash of bytes parameter outputs a [u8; 8]. Multiple inputs are concatenated before hashing. Input can be identifier (name of identifier as bytes is used), byte string or array of bytes.
  • Apply a Blake2 256-bit hash of bytes parameter, outputs a [u8; 32]. Multiple inputs are concatenated before hashing. Input can be identifier (name of identifier as bytes is used), byte string or array of bytes.
  • Apply a Blake2 512-bit hash of bytes parameter, outputs a [u8; 64]. Multiple inputs are concatenated before hashing. Input can be identifier (name of identifier as bytes is used), byte string or array of bytes.
  • Apply a keccak 256-bit hash on its bytes parameter, outputs a [u8; 32]. Multiple inputs are concatenated before hashing. Input can be identifier (name of identifier as bytes is used), byte string or array of bytes.
  • Apply a keccak 512-bit hash on its bytes parameter, outputs a [u8; 64]. Multiple inputs are concatenated before hashing. Input can be identifier (name of identifier as bytes is used), byte string or array of bytes.
  • Apply a sha2 256-bit hash on its bytes parameter, outputs a [u8; 32]. Multiple inputs are concatenated before hashing. Input can be identifier (name of identifier as bytes is used), byte string or array of bytes.
  • Apply a XX 64-bit hash on its bytes parameter, outputs a [u8; 8]. Multiple inputs are concatenated before hashing. Input can be identifier (name of identifier as bytes is used), byte string or array of bytes.
  • Apply a XX 128-bit hash on its bytes parameter, outputs a [u8; 16]. Multiple inputs are concatenated before hashing. Input can be identifier (name of identifier as bytes is used), byte string or array of bytes.