[][src]Trait sapling_crypto_ce::jubjub::ToUniform

pub trait ToUniform {
    fn to_uniform(digest: &[u8]) -> Self;
fn to_uniform_32(digest: &[u8]) -> Self; }

Required methods

fn to_uniform(digest: &[u8]) -> Self

fn to_uniform_32(digest: &[u8]) -> Self

Loading content...

Implementors

impl ToUniform for sapling_crypto_ce::alt_babyjubjub::fs::Fs[src]

fn to_uniform(digest: &[u8]) -> Self[src]

Convert a little endian byte string into a uniform field element. The number is reduced mod s. The caller is responsible for ensuring the input is 64 bytes of Random Oracle output.

fn to_uniform_32(digest: &[u8]) -> Self[src]

Convert a little endian byte string into a uniform field element. The number is reduced mod s. The caller is responsible for ensuring the input is 32 bytes of Random Oracle output.

impl ToUniform for sapling_crypto_ce::jubjub::fs::Fs[src]

fn to_uniform(digest: &[u8]) -> Self[src]

Convert a little endian byte string into a uniform field element. The number is reduced mod s. The caller is responsible for ensuring the input is 64 bytes of Random Oracle output.

fn to_uniform_32(digest: &[u8]) -> Self[src]

Convert a little endian byte string into a uniform field element. The number is reduced mod s. The caller is responsible for ensuring the input is 32 bytes of Random Oracle output.

Loading content...