Struct lamport_signature::Signature [] [src]

pub struct Signature { /* fields omitted */ }

A signature data generated by PrivateKey.

Methods

impl Signature
[src]

[src]

Constructs a Signature from the object implements std::io::Read, like std::fs::File.

Example

extern crate sha2;
extern crate lamport_signature;

use std::fs::File;
use std::io::Read;
use sha2::Sha256;
use lamport_signature::Signature;

let mut file = File::open("signed_data").unwrap();
assert!(Signature::from_bytes::<Sha256, _>(&mut file).is_ok());

[src]

Converts the inner signature data into a linearized vector.

Trait Implementations

impl Debug for Signature
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Signature
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Signature
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Signature
[src]

impl PartialOrd for Signature
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Signature
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for Signature
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Signature

impl Sync for Signature