From b0580303848c01aacfa2f2cbc192f29cfba179df Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 8 Dec 2023 06:11:40 +1100 Subject: [PATCH] Add deprecated bip32 types back in 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. --- bitcoin/src/bip32.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bitcoin/src/bip32.rs b/bitcoin/src/bip32.rs index c1c45597..0016d77d 100644 --- a/bitcoin/src/bip32.rs +++ b/bitcoin/src/bip32.rs @@ -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. 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 #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ChainCode([u8; 32]);