[][src]Trait storage_proofs::hasher::Domain

pub trait Domain: Ord + Copy + Clone + AsRef<[u8]> + Default + Debug + Eq + Send + Sync + From<Fr> + From<FrRepr> + Into<Fr> + Rand + Serialize + DeserializeOwned + Element {
    fn serialize(&self) -> Vec<u8>;
fn into_bytes(&self) -> Vec<u8>;
fn try_from_bytes(raw: &[u8]) -> Result<Self>;
fn write_bytes(&self, _: &mut [u8]) -> Result<()>; }

Required methods

fn serialize(&self) -> Vec<u8>

fn into_bytes(&self) -> Vec<u8>

fn try_from_bytes(raw: &[u8]) -> Result<Self>

fn write_bytes(&self, _: &mut [u8]) -> Result<()>

Write itself into the given slice, LittleEndian bytes.

Loading content...

Implementors

impl Domain for Blake2sDomain[src]

impl Domain for PedersenDomain[src]

impl Domain for DigestDomain[src]

Loading content...