Struct sc_keystore::LocalKeystore
source · pub struct LocalKeystore(_);
Expand description
A local based keystore that is either memory-based or filesystem-based.
Implementations§
source§impl LocalKeystore
impl LocalKeystore
Trait Implementations§
source§impl Into<Arc<dyn Keystore + 'static>> for LocalKeystore
impl Into<Arc<dyn Keystore + 'static>> for LocalKeystore
source§fn into(self) -> KeystorePtr
fn into(self) -> KeystorePtr
source§impl Keystore for LocalKeystore
impl Keystore for LocalKeystore
source§fn sr25519_generate_new(
&self,
key_type: KeyTypeId,
seed: Option<&str>
) -> Result<Public, TraitError>
fn sr25519_generate_new( &self, key_type: KeyTypeId, seed: Option<&str> ) -> Result<Public, TraitError>
Generate a new pair compatible with the ‘ed25519’ signature scheme.
If [seed]
is Some
then the key will be ephemeral and stored in memory.
source§fn ed25519_generate_new(
&self,
key_type: KeyTypeId,
seed: Option<&str>
) -> Result<Public, TraitError>
fn ed25519_generate_new( &self, key_type: KeyTypeId, seed: Option<&str> ) -> Result<Public, TraitError>
Generate a new pair compatible with the ‘sr25519’ signature scheme.
If [seed]
is Some
then the key will be ephemeral and stored in memory.
source§fn ecdsa_generate_new(
&self,
key_type: KeyTypeId,
seed: Option<&str>
) -> Result<Public, TraitError>
fn ecdsa_generate_new( &self, key_type: KeyTypeId, seed: Option<&str> ) -> Result<Public, TraitError>
Generate a new pair compatible with the ‘ecdsa’ signature scheme.
If [seed]
is Some
then the key will be ephemeral and stored in memory.
source§fn bandersnatch_generate_new(
&self,
key_type: KeyTypeId,
seed: Option<&str>
) -> Result<Public, TraitError>
fn bandersnatch_generate_new( &self, key_type: KeyTypeId, seed: Option<&str> ) -> Result<Public, TraitError>
Generate a new pair compatible with the ‘bandersnatch’ signature scheme.
If [seed]
is Some
then the key will be ephemeral and stored in memory.
source§fn bls381_generate_new(
&self,
key_type: KeyTypeId,
seed: Option<&str>
) -> Result<Public, TraitError>
fn bls381_generate_new( &self, key_type: KeyTypeId, seed: Option<&str> ) -> Result<Public, TraitError>
Generate a new pair compatible with the ‘bls381’ signature scheme.
If [seed]
is Some
then the key will be ephemeral and stored in memory.
source§fn bls377_generate_new(
&self,
key_type: KeyTypeId,
seed: Option<&str>
) -> Result<Public, TraitError>
fn bls377_generate_new( &self, key_type: KeyTypeId, seed: Option<&str> ) -> Result<Public, TraitError>
Generate a new pair compatible with the ‘bls377’ signature scheme.
If [seed]
is Some
then the key will be ephemeral and stored in memory.
source§fn sr25519_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
fn sr25519_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
source§fn sr25519_sign(
&self,
key_type: KeyTypeId,
public: &Public,
msg: &[u8]
) -> Result<Option<Signature>, TraitError>
fn sr25519_sign( &self, key_type: KeyTypeId, public: &Public, msg: &[u8] ) -> Result<Option<Signature>, TraitError>
source§fn sr25519_vrf_sign(
&self,
key_type: KeyTypeId,
public: &Public,
data: &VrfSignData
) -> Result<Option<VrfSignature>, TraitError>
fn sr25519_vrf_sign( &self, key_type: KeyTypeId, public: &Public, data: &VrfSignData ) -> Result<Option<VrfSignature>, TraitError>
source§fn sr25519_vrf_output(
&self,
key_type: KeyTypeId,
public: &Public,
input: &VrfInput
) -> Result<Option<VrfOutput>, TraitError>
fn sr25519_vrf_output( &self, key_type: KeyTypeId, public: &Public, input: &VrfInput ) -> Result<Option<VrfOutput>, TraitError>
source§fn ed25519_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
fn ed25519_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
source§fn ed25519_sign(
&self,
key_type: KeyTypeId,
public: &Public,
msg: &[u8]
) -> Result<Option<Signature>, TraitError>
fn ed25519_sign( &self, key_type: KeyTypeId, public: &Public, msg: &[u8] ) -> Result<Option<Signature>, TraitError>
source§fn ecdsa_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
fn ecdsa_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
source§fn ecdsa_sign(
&self,
key_type: KeyTypeId,
public: &Public,
msg: &[u8]
) -> Result<Option<Signature>, TraitError>
fn ecdsa_sign( &self, key_type: KeyTypeId, public: &Public, msg: &[u8] ) -> Result<Option<Signature>, TraitError>
source§fn ecdsa_sign_prehashed(
&self,
key_type: KeyTypeId,
public: &Public,
msg: &[u8; 32]
) -> Result<Option<Signature>, TraitError>
fn ecdsa_sign_prehashed( &self, key_type: KeyTypeId, public: &Public, msg: &[u8; 32] ) -> Result<Option<Signature>, TraitError>
source§fn bandersnatch_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
fn bandersnatch_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
source§fn bandersnatch_sign(
&self,
key_type: KeyTypeId,
public: &Public,
msg: &[u8]
) -> Result<Option<Signature>, TraitError>
fn bandersnatch_sign( &self, key_type: KeyTypeId, public: &Public, msg: &[u8] ) -> Result<Option<Signature>, TraitError>
source§fn bandersnatch_vrf_sign(
&self,
key_type: KeyTypeId,
public: &Public,
data: &VrfSignData
) -> Result<Option<VrfSignature>, TraitError>
fn bandersnatch_vrf_sign( &self, key_type: KeyTypeId, public: &Public, data: &VrfSignData ) -> Result<Option<VrfSignature>, TraitError>
source§fn bandersnatch_vrf_output(
&self,
key_type: KeyTypeId,
public: &Public,
input: &VrfInput
) -> Result<Option<VrfOutput>, TraitError>
fn bandersnatch_vrf_output( &self, key_type: KeyTypeId, public: &Public, input: &VrfInput ) -> Result<Option<VrfOutput>, TraitError>
source§fn bandersnatch_ring_vrf_sign(
&self,
key_type: KeyTypeId,
public: &Public,
data: &VrfSignData,
prover: &RingProver
) -> Result<Option<RingVrfSignature>, TraitError>
fn bandersnatch_ring_vrf_sign( &self, key_type: KeyTypeId, public: &Public, data: &VrfSignData, prover: &RingProver ) -> Result<Option<RingVrfSignature>, TraitError>
source§fn bls381_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
fn bls381_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
source§fn bls381_sign(
&self,
key_type: KeyTypeId,
public: &Public,
msg: &[u8]
) -> Result<Option<Signature>, TraitError>
fn bls381_sign( &self, key_type: KeyTypeId, public: &Public, msg: &[u8] ) -> Result<Option<Signature>, TraitError>
source§fn bls377_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
fn bls377_public_keys(&self, key_type: KeyTypeId) -> Vec<Public>
source§fn bls377_sign(
&self,
key_type: KeyTypeId,
public: &Public,
msg: &[u8]
) -> Result<Option<Signature>, TraitError>
fn bls377_sign( &self, key_type: KeyTypeId, public: &Public, msg: &[u8] ) -> Result<Option<Signature>, TraitError>
source§fn insert(
&self,
key_type: KeyTypeId,
suri: &str,
public: &[u8]
) -> Result<(), ()>
fn insert( &self, key_type: KeyTypeId, suri: &str, public: &[u8] ) -> Result<(), ()>
source§fn keys(&self, key_type: KeyTypeId) -> Result<Vec<Vec<u8>>, TraitError>
fn keys(&self, key_type: KeyTypeId) -> Result<Vec<Vec<u8>>, TraitError>
Auto Trait Implementations§
impl !RefUnwindSafe for LocalKeystore
impl Send for LocalKeystore
impl Sync for LocalKeystore
impl Unpin for LocalKeystore
impl UnwindSafe for LocalKeystore
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.