[−][src]Struct tmkms::keyring::KeyRing
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]
&self,
public_key: Option<&TendermintKey>,
msg: &[u8]
) -> Result<Signature, Error>
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self