Trait SignMethod

Source
pub trait SignMethod {
    // Required methods
    fn signature_type(&self) -> u64;
    fn next_seq_num(&mut self) -> u64;
    fn certificate(&self) -> Option<Certificate>;
    fn sign(&self, data: &[u8]) -> Bytes;

    // Provided method
    fn time(&self) -> SignatureTime { ... }
}

Required Methods§

Source

fn signature_type(&self) -> u64

Source

fn next_seq_num(&mut self) -> u64

Source

fn certificate(&self) -> Option<Certificate>

Source

fn sign(&self, data: &[u8]) -> Bytes

Provided Methods§

Implementations on Foreign Types§

Source§

impl<T: SignMethod + ?Sized> SignMethod for Box<T>

Source§

fn signature_type(&self) -> u64

Source§

fn next_seq_num(&mut self) -> u64

Source§

fn certificate(&self) -> Option<Certificate>

Source§

fn sign(&self, data: &[u8]) -> Bytes

Source§

impl<T: SignMethod> SignMethod for &mut T

Source§

fn signature_type(&self) -> u64

Source§

fn next_seq_num(&mut self) -> u64

Source§

fn certificate(&self) -> Option<Certificate>

Source§

fn sign(&self, data: &[u8]) -> Bytes

Implementors§