Trait filecoin_hashers::Domain[][src]

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

Required methods

Write itself into the given slice, LittleEndian bytes.

Implementors