-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//! BIP32 paths used for various secret material derivation | ||
use bitcoin::bip32::ChildNumber; | ||
|
||
/// Path for initial key material used for 160-bit WOTS keys | ||
pub const WOTS_IKM_160_PATH: &[ChildNumber] = &[ | ||
ChildNumber::Hardened { index: 79 }, | ||
ChildNumber::Hardened { index: 160 }, | ||
ChildNumber::Hardened { index: 0 }, | ||
]; | ||
/// Path for initial key material used for 256-bit WOTS keys | ||
pub const WOTS_IKM_256_PATH: &[ChildNumber] = &[ | ||
ChildNumber::Hardened { index: 79 }, | ||
ChildNumber::Hardened { index: 256 }, | ||
ChildNumber::Hardened { index: 0 }, | ||
]; | ||
|
||
/// Path for the Musig2 key | ||
pub const MUSIG2_KEY_PATH: &[ChildNumber] = &[ | ||
ChildNumber::Hardened { index: 20 }, | ||
ChildNumber::Hardened { index: 101 }, | ||
]; | ||
/// Path for inital key material for secnonce generation in musig2 | ||
pub const MUSIG2_NONCE_IKM_PATH: &[ChildNumber] = &[ | ||
ChildNumber::Hardened { index: 666 }, | ||
ChildNumber::Hardened { index: 0 }, | ||
]; | ||
|
||
/// Path for initial key material for stakechain preimages | ||
pub const STAKECHAIN_PREIMG_IKM_PATH: &[ChildNumber] = &[ | ||
ChildNumber::Hardened { index: 80 }, | ||
ChildNumber::Hardened { index: 0 }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters