touch_grass/cryptography/hash

Computes a cryptographic digest of a binary.

Types

pub type Algorithm {
  Sha256
}

Constructors

  • Sha256
pub type Input {
  Input(algorithm: Algorithm, bytes: BitArray)
}

Constructors

  • Input(algorithm: Algorithm, bytes: BitArray)

Values

pub fn decode(
  lift: value.Value(a, b),
) -> Result(Input, break.Reason(a, b))
pub fn encode(digest: BitArray) -> value.Value(m, c)
Search Document