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<ChainCode> for ChainCode
impl PartialEq<ChainCode> for ChainCode
impl Copy for ChainCode
impl Eq for ChainCode
impl StructuralEq for ChainCode
impl StructuralPartialEq for ChainCode
Auto Trait Implementations§
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