pub struct SpEcdsa;
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpEcdsa
impl<'de> Deserialize<'de> for SpEcdsa
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl KeyType for SpEcdsa
impl KeyType for SpEcdsa
type Public = SpEcdsaPublic
type Secret = SpEcdsaPair
type Signature = SpEcdsaSignature
type Error = SpCoreError
fn key_type_id() -> KeyTypeId
fn generate_with_seed(seed: Option<&[u8]>) -> Result<Self::Secret>
fn generate_with_string(secret: String) -> Result<Self::Secret>
fn public_from_secret(secret: &Self::Secret) -> Self::Public
fn sign_with_secret( secret: &mut Self::Secret, msg: &[u8], ) -> Result<Self::Signature>
fn sign_with_secret_pre_hashed( secret: &mut Self::Secret, msg: &[u8; 32], ) -> Result<Self::Signature>
fn verify( public: &Self::Public, msg: &[u8], signature: &Self::Signature, ) -> bool
Source§fn get_test_rng() -> impl CryptoRng + Rng
fn get_test_rng() -> impl CryptoRng + Rng
Get a deterministic random number generator for testing
Source§impl Ord for SpEcdsa
impl Ord for SpEcdsa
Source§impl PartialOrd for SpEcdsa
impl PartialOrd for SpEcdsa
impl Eq for SpEcdsa
impl StructuralPartialEq for SpEcdsa
Auto Trait Implementations§
impl Freeze for SpEcdsa
impl RefUnwindSafe for SpEcdsa
impl Send for SpEcdsa
impl Sync for SpEcdsa
impl Unpin for SpEcdsa
impl UnwindSafe for SpEcdsa
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> 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
The counterpart to
unchecked_from
.