[][src]Trait bls_signatures::Serialize

pub trait Serialize: Debug + Sized {
    fn write_bytes(&self, dest: &mut impl Write) -> Result<()>;
fn from_bytes(raw: &[u8]) -> Result<Self, Error>; fn as_bytes(&self) -> Vec<u8> { ... } }

Required methods

fn write_bytes(&self, dest: &mut impl Write) -> Result<()>

Writes the key to the given writer.

fn from_bytes(raw: &[u8]) -> Result<Self, Error>

Recreate the key from bytes in the same form as write_bytes produced.

Loading content...

Provided methods

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

Loading content...

Implementors

impl Serialize for PrivateKey[src]

impl Serialize for PublicKey[src]

impl Serialize for Signature[src]

Loading content...