[−][src]Struct sp_application_crypto::ed25519::AppPair
A generic AppPublic
wrapper type over $pair crypto; this has no specific App.
Trait Implementations
impl AppKey for Pair
[src]
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
[src]
const CRYPTO_ID: CryptoTypeId
[src]
impl AppPair for Pair
[src]
impl AsMut<Pair> for Pair
[src]
impl AsRef<Pair> for Pair
[src]
impl Clone for Pair
[src]
impl CryptoType for Pair
[src]
impl From<Pair> for Pair
[src]
impl From<Pair> for Pair
[src]
impl Pair for Pair
[src]
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)
[src]
fn from_phrase(
phrase: &str,
password: Option<&str>
) -> Result<(Self, Self::Seed), SecretStringError>
[src]
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>
[src]
&self,
path: Iter,
seed: Option<Self::Seed>
) -> Result<(Self, Option<Self::Seed>), Self::DeriveError>
fn from_seed(seed: &Self::Seed) -> Self
[src]
fn from_seed_slice(seed: &[u8]) -> Result<Self, SecretStringError>
[src]
fn sign(&self, msg: &[u8]) -> Self::Signature
[src]
fn verify<M: AsRef<[u8]>>(
sig: &Self::Signature,
message: M,
pubkey: &Self::Public
) -> bool
[src]
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
[src]
sig: &[u8],
message: M,
pubkey: P
) -> bool
fn public(&self) -> Self::Public
[src]
fn to_raw_vec(&self) -> Vec<u8>
[src]
fn generate() -> (Self, Self::Seed)
[src]
fn from_string_with_seed(
s: &str,
password_override: Option<&str>
) -> Result<(Self, Option<Self::Seed>), SecretStringError>
[src]
s: &str,
password_override: Option<&str>
) -> Result<(Self, Option<Self::Seed>), SecretStringError>
fn from_string(
s: &str,
password_override: Option<&str>
) -> Result<Self, SecretStringError>
[src]
s: &str,
password_override: Option<&str>
) -> Result<Self, SecretStringError>
impl Wraps for Pair
[src]
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
[src]
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
fn from_mut(outer: &mut Outer) -> &mut T
[src]
Get a mutable reference to the inner from the outer.
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
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>,
[src]
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,