Merge rust-bitcoin/rust-bitcoin#2258: Add deprecated bip32 types back in
b058030384
Add deprecated bip32 types back in (Tobin C. Harding) Pull request description: In the 0.31.0 release we renamed the bip32 extended key types without leaving the originals in there marked as deprecated. This makes for a bad experience for devs, add them back in. ACKs for top commit: Kixunil: ACKb058030384
apoelstra: ACKb058030384
Tree-SHA512: 215c5be0953d45e0fcd31cd626b8e15d60c776ef1ccaab5e7047077b323223341f890487ba69363379383b5ac16469e65d6576706ffe6366d7dc96e6bb99b7f9
This commit is contained in:
commit
16a5e26baf
|
@ -33,6 +33,14 @@ const VERSION_BYTES_TESTNETS_PUBLIC: [u8; 4] = [0x04, 0x35, 0x87, 0xCF];
|
||||||
/// Version bytes for extended private keys on any of the testnet networks.
|
/// Version bytes for extended private keys on any of the testnet networks.
|
||||||
const VERSION_BYTES_TESTNETS_PRIVATE: [u8; 4] = [0x04, 0x35, 0x83, 0x94];
|
const VERSION_BYTES_TESTNETS_PRIVATE: [u8; 4] = [0x04, 0x35, 0x83, 0x94];
|
||||||
|
|
||||||
|
/// The old name for xpub, extended public key.
|
||||||
|
#[deprecated(since = "0.31.0", note = "use xpub instead")]
|
||||||
|
pub type ExtendendPubKey = Xpub;
|
||||||
|
|
||||||
|
/// The old name for xpriv, extended public key.
|
||||||
|
#[deprecated(since = "0.31.0", note = "use xpriv instead")]
|
||||||
|
pub type ExtendendPrivKey = Xpriv;
|
||||||
|
|
||||||
/// A chain code
|
/// A chain code
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub struct ChainCode([u8; 32]);
|
pub struct ChainCode([u8; 32]);
|
||||||
|
|
Loading…
Reference in New Issue