Struct schnorrkel::derive::ChainCode
source · pub struct ChainCode(pub [u8; 32]);
Expand description
We cannot assume the original public key is secret and additional
inputs might have low entropy, like i
in BIP32. As in BIP32,
chain codes fill this gap by being a high entropy secret shared
between public and private key holders. These are produced by
key derivations and can be incorporated into subsequence key
derivations.
See https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#extended-keys
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
source§impl PartialEq for ChainCode
impl PartialEq for ChainCode
impl Copy for ChainCode
impl Eq for ChainCode
impl StructuralPartialEq for ChainCode
Auto Trait Implementations§
impl Freeze for ChainCode
impl RefUnwindSafe for ChainCode
impl Send for ChainCode
impl Sync for ChainCode
impl Unpin for ChainCode
impl UnwindSafe for ChainCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)