[−][src]Enum substrate_primitives::crypto::DeriveJunction
A since derivation junction description. It is the single parameter used when creating
a new secret key from an existing secret key and, in the case of SoftRaw
and SoftIndex
a new public key from an existing public key.
Variants
Soft (vanilla) derivation. Public keys have a correspondent derivation.
Hard ("hardened") derivation. Public keys do not have a correspondent derivation.
Methods
impl DeriveJunction
[src]
pub fn soften(self) -> Self
[src]
Consume self to return a soft derive junction with the same chain code.
pub fn harden(self) -> Self
[src]
Consume self to return a hard derive junction with the same chain code.
pub fn soft<T: Encode>(index: T) -> Self
[src]
Create a new soft (vanilla) DeriveJunction from a given, encodable, value.
If you need a hard junction, use hard()
.
pub fn hard<T: Encode>(index: T) -> Self
[src]
Create a new hard (hardened) DeriveJunction from a given, encodable, value.
If you need a soft junction, use soft()
.
pub fn unwrap_inner(self) -> [u8; 32]
[src]
Consume self to return the chain code.
pub fn inner(&self) -> &[u8; 32]
[src]
Get a reference to the inner junction id.
pub fn is_soft(&self) -> bool
[src]
Return true
if the junction is soft.
pub fn is_hard(&self) -> bool
[src]
Return true
if the junction is hard.
Trait Implementations
impl Eq for DeriveJunction
[src]
impl Clone for DeriveJunction
[src]
fn clone(&self) -> DeriveJunction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<DeriveJunction> for DeriveJunction
[src]
fn eq(&self, other: &DeriveJunction) -> bool
[src]
fn ne(&self, other: &DeriveJunction) -> bool
[src]
impl<T: AsRef<str>> From<T> for DeriveJunction
[src]
fn from(j: T) -> DeriveJunction
[src]
impl Copy for DeriveJunction
[src]
impl Hash for DeriveJunction
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for DeriveJunction
[src]
impl Encode for DeriveJunction
[src]
fn encode_to<EncOut: Output>(&self, dest: &mut EncOut)
[src]
fn encode(&self) -> Vec<u8>
[src]
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
[src]
F: FnOnce(&[u8]) -> R,
impl Decode for DeriveJunction
[src]
Auto Trait Implementations
impl Send for DeriveJunction
impl Unpin for DeriveJunction
impl Sync for DeriveJunction
impl UnwindSafe for DeriveJunction
impl RefUnwindSafe for DeriveJunction
Blanket Implementations
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
fn unchecked_into(Self) -> T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S> Codec for S where
S: Encode + Decode,
[src]
S: Encode + Decode,
impl<T> KeyedVec for T where
T: Codec,
[src]
T: Codec,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,