Trait yobicrypto::traits::BinarySerialize
[−]
[src]
pub trait BinarySerialize: Sized { fn to_bytes(&self) -> Result<Vec<u8>>; fn from_bytes(b: &[u8]) -> Result<Self>; }
Trait for object that can be serialized from and to binary.
Required Methods
fn to_bytes(&self) -> Result<Vec<u8>>
Serialize to a binary.
fn from_bytes(b: &[u8]) -> Result<Self>
Deserialize from a binary.
Implementors
impl BinarySerialize for Digest
impl BinarySerialize for BalloonParams
impl BinarySerialize for PoWTarget
impl BinarySerialize for Scalar
impl BinarySerialize for Point
impl BinarySerialize for ZKPWitness
impl BinarySerialize for ZKPProof
impl BinarySerialize for SecretKey
impl BinarySerialize for PublicKey
impl BinarySerialize for Key