[][src]Struct sawtooth_sdk::signing::CryptoFactory

pub struct CryptoFactory<'a> { /* fields omitted */ }

Factory for generating signers.

Methods

impl<'a> CryptoFactory<'a>[src]

pub fn new(context: &'a dyn Context) -> Self[src]

Constructs a CryptoFactory.

Arguments

  • context - a cryptographic context

pub fn get_context(&self) -> &dyn Context[src]

Returns the context associated with this factory

Returns

  • context - a cryptographic context

pub fn new_signer(&self, key: &'a dyn PrivateKey) -> Signer[src]

Create a new signer for the given private key.

Arguments

private_key - a private key

Returns

  • signer - a signer instance

Auto Trait Implementations

impl<'a> !Send for CryptoFactory<'a>

impl<'a> !Sync for CryptoFactory<'a>

impl<'a> Unpin for CryptoFactory<'a>

impl<'a> !UnwindSafe for CryptoFactory<'a>

impl<'a> !RefUnwindSafe for CryptoFactory<'a>

Blanket Implementations

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

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

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> 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]