Struct edcert::signature::Signature [] [src]

pub struct Signature {
    // some fields omitted
}

Methods

impl Signature

fn new(signature: Vec<u8>) -> Signature

Creates a new Signature with the given signature. It is assumed that the signature is computed usign the master key.

fn with_parent(parent: Box<Certificate>, signature: Vec<u8>) -> Signature

Creates a new Signature with the given parent and given signature.

fn is_signed_by_master(&self) -> bool

This method will return true iff the certificate has no parent certificate. It is then signed with the master key.

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

This method will return the parent Certificate, or None, if it is signed with the master key.

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

This method will return the signature given by the parent.

Trait Implementations

Derived Implementations

impl Debug for Signature

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Encodable for Signature

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Signature

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Signature, __D::Error>

impl Clone for Signature

fn clone(&self) -> Signature

fn clone_from(&mut self, source: &Self)