Trait diem_crypto::multi_bls::BLSSerialize
pub trait BLSSerialize: Debug + Sized {
// Required methods
fn write_bytes(&self, dest: &mut impl Write) -> Result<(), Error>;
fn from_bytes(raw: &[u8]) -> Result<Self, Error>;
// Provided method
fn as_bytes(&self) -> Vec<u8> ⓘ { ... }
}
Required Methods§
fn write_bytes(&self, dest: &mut impl Write) -> Result<(), Error>
fn write_bytes(&self, dest: &mut impl Write) -> Result<(), Error>
Writes the key to the given writer.
fn from_bytes(raw: &[u8]) -> Result<Self, Error>
fn from_bytes(raw: &[u8]) -> Result<Self, Error>
Recreate the key from bytes in the same form as write_bytes
produced.
Provided Methods§
Object Safety§
This trait is not object safe.