Struct sp_core::crypto::Dummy [−][src]
Dummy cryptography. Doesn't do anything.
Trait Implementations
impl AsMut<[u8]> for Dummy
[src]
impl AsRef<[u8]> for Dummy
[src]
impl Clone for Dummy
[src]
impl CryptoType for Dummy
[src]
impl Default for Dummy
[src]
impl Derive for Dummy
[src]
fn derive<Iter: Iterator<Item = DeriveJunction>>(
&self,
_path: Iter
) -> Option<Self>
[src]
&self,
_path: Iter
) -> Option<Self>
impl Eq for Dummy
[src]
impl Hash for Dummy
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Pair for Dummy
[src]
type Public = Dummy
The type which is used to encode a public key.
type Seed = Dummy
The type used to (minimally) encode the data required to securely create a new key pair. Read more
type Signature = Dummy
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 = ()
Error returned from the derive
function.
fn generate_with_phrase(_: Option<&str>) -> (Self, String, Self::Seed)
[src]
fn from_phrase(
_: &str,
_: Option<&str>
) -> Result<(Self, Self::Seed), SecretStringError>
[src]
_: &str,
_: Option<&str>
) -> Result<(Self, Self::Seed), SecretStringError>
fn derive<Iter: Iterator<Item = DeriveJunction>>(
&self,
_: Iter,
_: Option<Dummy>
) -> Result<(Self, Option<Dummy>), Self::DeriveError>
[src]
&self,
_: Iter,
_: Option<Dummy>
) -> Result<(Self, Option<Dummy>), Self::DeriveError>
fn from_seed(_: &Self::Seed) -> Self
[src]
fn from_seed_slice(_: &[u8]) -> Result<Self, SecretStringError>
[src]
fn sign(&self, _: &[u8]) -> Self::Signature
[src]
fn verify<M: AsRef<[u8]>>(_: &Self::Signature, _: M, _: &Self::Public) -> bool
[src]
fn verify_weak<P: AsRef<[u8]>, M: AsRef<[u8]>>(_: &[u8], _: M, _: P) -> bool
[src]
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 PartialEq<Dummy> for Dummy
[src]
impl Public for Dummy
[src]
fn from_slice(_: &[u8]) -> Self
[src]
fn to_raw_vec(&self) -> Vec<u8>ⓘ
[src]
fn as_slice(&self) -> &[u8]ⓘ
[src]
fn to_public_crypto_pair(&self) -> CryptoTypePublicPair
[src]
impl StructuralEq for Dummy
[src]
impl StructuralPartialEq for Dummy
[src]
impl<'a> TryFrom<&'a [u8]> for Dummy
[src]
Auto Trait Implementations
impl RefUnwindSafe for Dummy
[src]
impl Send for Dummy
[src]
impl Sync for Dummy
[src]
impl Unpin for Dummy
[src]
impl UnwindSafe for Dummy
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> AsByteSlice<T> for U where
T: ToByteSlice,
U: AsRef<[T]> + ?Sized,
T: ToByteSlice,
U: AsRef<[T]> + ?Sized,
pub fn as_byte_slice(&self) -> &[u8]ⓘ
impl<T, U> AsMutByteSlice<T> for U where
T: ToMutByteSlice,
U: AsMut<[T]> + ?Sized,
T: ToMutByteSlice,
U: AsMut<[T]> + ?Sized,
pub fn as_mut_byte_slice(&mut self) -> &mut [u8]ⓘ
impl<U> AsMutSliceOf for U where
U: AsMut<[u8]> + ?Sized,
U: AsMut<[u8]> + ?Sized,
pub fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error> where
T: FromByteSlice,
T: FromByteSlice,
impl<U> AsSliceOf for U where
U: AsRef<[u8]> + ?Sized,
U: AsRef<[u8]> + ?Sized,
pub fn as_slice_of<T>(&self) -> Result<&[T], Error> where
T: FromByteSlice,
T: FromByteSlice,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
pub fn from_ref(&Outer) -> &T
[src]
Get a reference to the inner from the outer.
pub fn from_mut(&mut Outer) -> &mut T
[src]
Get a mutable reference to the inner from the outer.
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> Ss58Codec for T where
T: Derive + AsRef<[u8]> + AsMut<[u8]> + Default,
[src]
T: Derive + AsRef<[u8]> + AsMut<[u8]> + Default,
pub fn from_string(&str) -> Result<T, PublicError>
[src]
pub fn from_string_with_version(
&str
) -> Result<(T, Ss58AddressFormat), PublicError>
[src]
&str
) -> Result<(T, Ss58AddressFormat), PublicError>
fn format_is_allowed(f: Ss58AddressFormat) -> bool
[src]
fn from_ss58check(s: &str) -> Result<Self, PublicError>
[src]
fn from_ss58check_with_version(
s: &str
) -> Result<(Self, Ss58AddressFormat), PublicError>
[src]
s: &str
) -> Result<(Self, Ss58AddressFormat), PublicError>
fn to_ss58check_with_version(&self, version: Ss58AddressFormat) -> String
[src]
fn to_ss58check(&self) -> String
[src]
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,
pub fn unchecked_into(Self) -> T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,