pub struct SpEcdsaPair(pub Pair);
Expand description
Wrapper struct for the cryptographic key pair.
This provides a safe interface for serialization and deserialization of the underlying key pair type.
Tuple Fields§
§0: Pair
Implementations§
Source§impl SpEcdsaPair
impl SpEcdsaPair
pub fn public(&self) -> SpEcdsaPublic
Methods from Deref<Target = Pair>§
Sourcepub fn sign_prehashed(
&self,
message: &[u8; 32],
) -> CryptoBytes<sp_core::::ecdsa::Signature::{constant#0}, (SignatureTag, EcdsaTag)>
pub fn sign_prehashed( &self, message: &[u8; 32], ) -> CryptoBytes<sp_core::::ecdsa::Signature::{constant#0}, (SignatureTag, EcdsaTag)>
Sign a pre-hashed message
Trait Implementations§
Source§impl BytesEncoding for SpEcdsaPair
impl BytesEncoding for SpEcdsaPair
Source§impl Clone for SpEcdsaPair
impl Clone for SpEcdsaPair
Source§fn clone(&self) -> SpEcdsaPair
fn clone(&self) -> SpEcdsaPair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SpEcdsaPair
impl Debug for SpEcdsaPair
Source§impl Deref for SpEcdsaPair
impl Deref for SpEcdsaPair
Source§impl DerefMut for SpEcdsaPair
impl DerefMut for SpEcdsaPair
Source§impl<'de> Deserialize<'de> for SpEcdsaPair
impl<'de> Deserialize<'de> for SpEcdsaPair
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 Ord for SpEcdsaPair
impl Ord for SpEcdsaPair
Source§impl PartialEq for SpEcdsaPair
impl PartialEq for SpEcdsaPair
Source§impl PartialOrd for SpEcdsaPair
impl PartialOrd for SpEcdsaPair
Source§impl Serialize for SpEcdsaPair
impl Serialize for SpEcdsaPair
impl Eq for SpEcdsaPair
Auto Trait Implementations§
impl Freeze for SpEcdsaPair
impl RefUnwindSafe for SpEcdsaPair
impl Send for SpEcdsaPair
impl Sync for SpEcdsaPair
impl Unpin for SpEcdsaPair
impl UnwindSafe for SpEcdsaPair
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
.