Struct signatory::EcdsaSecretKey[][src]

pub struct EcdsaSecretKey<C: WeierstrassCurve> { /* fields omitted */ }

Raw ECDSA secret keys: raw scalar value WeierstrassCurve::ScalarBytes in size used as the x value for ECDSA.

Methods

impl<C> SecretKey<C> where
    C: WeierstrassCurve
[src]

Create a raw ECDSA secret key

Decode a raw ECDSA secret key from the given byte slice

Generate a new ECDSA secret key using the operating system's cryptographically secure random number generator

Generate a new ECDSA secret key using the provided random number generator

Important traits for &'a [u8]

Expose this SecretKey as a byte slice

Trait Implementations

impl<C: WeierstrassCurve> Clone for SecretKey<C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C> Decode for SecretKey<C> where
    C: WeierstrassCurve
[src]

Decode an Ed25519 seed from a byte slice with the given encoding (e.g. hex, Base64)

Decode the given string-alike type with the provided Encoding, returning the decoded value or a Error. Read more

Decode the data read from the given io::Read type with the provided Encoding, returning the decoded value or a Error. Read more

Read a file at the given path, decoding the data it contains using the provided Encoding, returning the decoded value or a Error. Read more

impl<C> Encode for SecretKey<C> where
    C: WeierstrassCurve
[src]

Important traits for Vec<u8>

Encode an Ed25519 seed with the given encoding (e.g. hex, Base64)

Encode self to a String using the provided Encoding, returning the encoded value or a Error. Read more

Encode self with the given Encoding, writing the result to the supplied io::Write type, returning the number of bytes written or a Error. Read more

Encode self and write it to a file at the given path, returning the resulting File or a Error. Read more

impl<C> Drop for SecretKey<C> where
    C: WeierstrassCurve
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<C> Send for EcdsaSecretKey<C> where
    <C as WeierstrassCurve>::ScalarSize: ArrayLength<u8>, 

impl<C> Sync for EcdsaSecretKey<C> where
    <C as WeierstrassCurve>::ScalarSize: ArrayLength<u8>,