Trait holochain::prelude::dependencies::kitsune_p2p_types::dependencies::rustls::sign::SigningKey
pub trait SigningKey: Send + Sync {
fn choose_scheme(
&self,
offered: &[SignatureScheme]
) -> Option<Box<dyn Signer + 'static, Global>>;
fn algorithm(&self) -> SignatureAlgorithm;
}
Expand description
An abstract signing key.
Required Methods§
fn choose_scheme(
&self,
offered: &[SignatureScheme]
) -> Option<Box<dyn Signer + 'static, Global>>
fn choose_scheme(
&self,
offered: &[SignatureScheme]
) -> Option<Box<dyn Signer + 'static, Global>>
Choose a SignatureScheme
from those offered.
Expresses the choice by returning something that implements Signer
,
using the chosen scheme.
fn algorithm(&self) -> SignatureAlgorithm
fn algorithm(&self) -> SignatureAlgorithm
What kind of key we have.