[][src]Struct tmkms::keyring::KeyRing

pub struct KeyRing { /* fields omitted */ }

Signing keyring

Methods

impl KeyRing[src]

pub fn new(format: Format) -> Self[src]

Create a new keyring

pub fn add(&mut self, signer: Signer) -> Result<(), Error>[src]

Add a key to the keyring, returning an error if we already have a signer registered for the given public key

pub fn default_pubkey(&self) -> Result<TendermintKey, Error>[src]

Get the default public key for this keyring

pub fn sign_ed25519(
    &self,
    public_key: Option<&TendermintKey>,
    msg: &[u8]
) -> Result<Signature, Error>
[src]

Sign a message using the secret key associated with the given public key (if it is in our keyring)

Auto Trait Implementations

impl Send for KeyRing

impl Unpin for KeyRing

impl Sync for KeyRing

impl !UnwindSafe for KeyRing

impl !RefUnwindSafe for KeyRing

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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