darkfi_sdk::crypto

Module util

Source
Expand description

Miscellaneous utilities

Traits§

Functions§

  • Converts from pallas::Base to pallas::Scalar (aka $x \pmod{r_\mathbb{P}}$).
  • Converts from pallas::Scalar to pallas::Base (aka $x \pmod{r_\mathbb{P}}$).
  • Hash a slice of values together with a prefix persona using BLAKE2b and return a pallas::Scalar element from the digest.
  • Hash a slice of values together with a prefix persona using BLAKE2b and return a pallas::Scalar element from the digest.
  • Wrapper around poseidon in halo2_gadgets