[][src]Trait selenite::crypto::Signatures

pub trait Signatures {
    fn export(&self) -> String;
fn import(yaml: &str) -> Self;
fn verify(&self) -> bool;
fn signature_as_bytes(&self) -> Vec<u8>;
fn message_as_bytes(&self) -> &[u8]; }

Traits For Signatures

These traits are required for properly handling signatures. They allow the serialization/deserialization of signatures, the conversion into bytes, and the verification of signatures.

Required methods

fn export(&self) -> String

Serializes To YAML

fn import(yaml: &str) -> Self

Deserializes From YAML

fn verify(&self) -> bool

Verifies a Signature

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

fn message_as_bytes(&self) -> &[u8]

Loading content...

Implementors

impl Signatures for Signature[src]

Loading content...