[−]Struct eq_oracle::crypto::Pair
A generic AppPublic
wrapper type over $pair crypto; this has no specific App.
Trait Implementations
impl AppKey for Pair
type UntypedGeneric = Pair
The corresponding type as a generic crypto type.
type Public = Public
The corresponding public key type in this application scheme.
type Pair = Pair
The corresponding key pair type in this application scheme.
type Signature = Signature
The corresponding signature type in this application scheme.
const ID: KeyTypeId
const CRYPTO_ID: CryptoTypeId
impl AppPair for Pair
type Generic = Pair
The wrapped type which is just a plain instance of Pair
.
impl AsMut<Pair> for Pair
fn as_mut(&mut self) -> &mut Pair
impl AsRef<Pair> for Pair
fn as_ref(&self) -> &Pair
impl Clone for Pair
fn clone(&self) -> Pair
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CryptoType for Pair
impl From<Pair> for Pair
fn from(inner: Pair) -> Self
impl From<Pair> for Pair
impl Pair for Pair
type Public = Public
The type which is used to encode a public key.
type Seed = <Pair as Pair>::Seed
The type used to (minimally) encode the data required to securely create a new key pair. Read more
type Signature = Signature
The type used to represent a signature. Can be created from a key pair and a message and verified with the message and a public key. Read more
type DeriveError = <Pair as Pair>::DeriveError
Error returned from the derive
function.
fn generate_with_phrase(password: Option<&str>) -> (Self, String, Self::Seed)
fn from_phrase(
phrase: &str,
password: Option<&str>
) -> Result<(Self, Self::Seed), SecretStringError>
phrase: &str,
password: Option<&str>
) -> Result<(Self, Self::Seed), SecretStringError>
fn derive<Iter: Iterator<Item = DeriveJunction>>(
&self,
path: Iter,
seed: Option<Self::Seed>
) -> Result<(Self, Option<Self::Seed>), Self::DeriveError>
&self,
path: Iter,
seed: Option<Self::Seed>
) -> Result<(Self, Option<Self::Seed>), Self::DeriveError>
fn from_seed(seed: &Self::Seed) -> Self
fn from_seed_slice(seed: &[u8]) -> Result<Self, SecretStringError>
fn sign(&self, msg: &[u8]) -> Self::Signature
fn verify<M: AsRef<[u8]>>(
sig: &Self::Signature,
message: M,
pubkey: &Self::Public
) -> bool
sig: &Self::Signature,
message: M,
pubkey: &Self::Public
) -> bool
fn verify_weak<P: AsRef<[u8]>, M: AsRef<[u8]>>(
sig: &[u8],
message: M,
pubkey: P
) -> bool
sig: &[u8],
message: M,
pubkey: P
) -> bool
fn public(&self) -> Self::Public
fn to_raw_vec(&self) -> Vec<u8>
fn generate() -> (Self, Self::Seed)
fn from_string_with_seed(
s: &str,
password_override: Option<&str>
) -> Result<(Self, Option<Self::Seed>), SecretStringError>
s: &str,
password_override: Option<&str>
) -> Result<(Self, Option<Self::Seed>), SecretStringError>
fn from_string(
s: &str,
password_override: Option<&str>
) -> Result<Self, SecretStringError>
s: &str,
password_override: Option<&str>
) -> Result<Self, SecretStringError>
impl Wraps for Pair
type Inner = Pair
The inner type it is wrapping.
Auto Trait Implementations
impl RefUnwindSafe for Pair
impl Send for Pair
impl Sync for Pair
impl Unpin for Pair
impl UnwindSafe for Pair
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
Self: TryFrom<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
Self: TryInto<T>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IsType<T> for T
fn from_ref(t: &T) -> &T
fn into_ref(&self) -> &T
fn from_mut(t: &mut T) -> &mut T
fn into_mut(&mut self) -> &mut T
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
fn from_ref(outer: &Outer) -> &T
Get a reference to the inner from the outer.
fn from_mut(outer: &mut Outer) -> &mut T
Get a mutable reference to the inner from the outer.
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
fn lossy_into(self) -> Dst
[src]
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
T: Bounded,
fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,