[][src]Struct signatory_ring::ed25519::Signer

pub struct Signer(_);

Ed25519 signature provider for ring

Trait Implementations

impl<'a> From<&'a Seed> for Signer[src]

fn from(seed: &'a Seed) -> Self[src]

Create a new Ed25519Signer from an unexpanded seed value

impl FromPkcs8 for Signer[src]

fn from_pkcs8<K: AsRef<[u8]>>(secret_key: K) -> Result<Self, Error>[src]

Create a new Ed25519Signer from a PKCS#8 encoded private key

fn read_pkcs8<R>(reader: R) -> Result<Self, Error> where
    R: Read
[src]

Read PKCS#8 data from the given std::io::Read.

fn from_pkcs8_file<P>(path: P) -> Result<Self, Error> where
    P: AsRef<Path>, 
[src]

Read PKCS#8 data from the file at the given path.

impl GeneratePkcs8 for Signer[src]

fn generate_pkcs8() -> Result<SecretKey, Error>[src]

Randomly generate an Ed25519 PKCS#8 keypair

fn generate_pkcs8_file<P>(path: P) -> Result<File, Error> where
    P: AsRef<Path>, 
[src]

Write randomly generated PKCS#8 private key to the file at the given path. Read more

impl PublicKeyed<PublicKey> for Signer[src]

impl Signer<Signature> for Signer[src]

fn sign(&self, msg: &[u8]) -> S[src]

Sign the given message and return a digital signature

Auto Trait Implementations

impl Send for Signer

impl Sync for Signer

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self