Enum sp_core::crypto::DeriveJunction [−][src]
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.
Implementations
impl DeriveJunction[src]
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 Clone for DeriveJunction[src]
impl Clone for DeriveJunction[src]fn clone(&self) -> DeriveJunction[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Decode for DeriveJunction[src]
impl Decode for DeriveJunction[src]impl Encode for DeriveJunction[src]
impl Encode for DeriveJunction[src]fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)[src]
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
pub fn size_hint(&self) -> usize[src]
pub fn encode(&self) -> Vec<u8, Global>[src]
pub fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R, [src]
F: FnOnce(&[u8]) -> R,
pub fn encoded_size(&self) -> usize[src]
impl<T: AsRef<str>> From<T> for DeriveJunction[src]
impl<T: AsRef<str>> From<T> for DeriveJunction[src]fn from(j: T) -> DeriveJunction[src]
impl Hash for DeriveJunction[src]
impl Hash for DeriveJunction[src]impl PartialEq<DeriveJunction> for DeriveJunction[src]
impl PartialEq<DeriveJunction> for DeriveJunction[src]fn eq(&self, other: &DeriveJunction) -> bool[src]
fn ne(&self, other: &DeriveJunction) -> bool[src]
impl Copy for DeriveJunction[src]
impl EncodeLike<DeriveJunction> for DeriveJunction[src]
impl Eq for DeriveJunction[src]
impl StructuralEq for DeriveJunction[src]
impl StructuralPartialEq for DeriveJunction[src]
Auto Trait Implementations
impl RefUnwindSafe for DeriveJunction
impl Send for DeriveJunction
impl Sync for DeriveJunction
impl Unpin for DeriveJunction
impl UnwindSafe for DeriveJunction
Blanket Implementations
impl<T> CallHasher for T where
T: Hash, [src]
impl<T> CallHasher for T where
T: Hash, [src]impl<T> DecodeLimit for T where
T: Decode, [src]
impl<T> DecodeLimit for T where
T: Decode, [src]impl<T> Instrument 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, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]pub fn unchecked_into(Self) -> T[src]
impl<S> Codec for S where
S: Decode + Encode, [src]
S: Decode + Encode,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode, [src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode, [src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode, [src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode, [src]
T: Encode,
impl<T> EncodeLike<Box<T, Global>> for T where
T: Encode, [src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
T: ToOwned + Encode, [src]
T: ToOwned + Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode, [src]
T: Encode,
impl<S> FullCodec for S where
S: Decode + FullEncode, [src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>, [src]
S: Encode + EncodeLike<S>,
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,