2019-10-02 15:42:58 +00:00
2021-06-08 13:27:16 +00:00
# 0.26.2 - 2021-06-08
- [Fix `Display` impl of `ChildNumber` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/611 )
The previous release changed the behavior of `Display` for `ChildNumber` , assuming that any correct usage would not be
affected. [Issue 608 ](https://github.com/rust-bitcoin/rust-bitcoin/issues/608 ) goes into the details of why this isn't
the case and how we broke both `rust-miniscript` and BDK.
# 0.26.1 - 2021-06-06 (yanked, see explanation above)
2021-06-06 18:04:18 +00:00
- [Change Amount Debug impl to BTC with 8 decimals ](https://github.com/rust-bitcoin/rust-bitcoin/pull/414 )
- [Make uint types (un)serializable ](https://github.com/rust-bitcoin/rust-bitcoin/pull/511 )
- Add [more derives for key::Error ](https://github.com/rust-bitcoin/rust-bitcoin/pull/551 )
- [Fix optional amount serialization ](https://github.com/rust-bitcoin/rust-bitcoin/pull/552 )
- Add [PSBT base64 (de)serialization with Display & FromStr ](https://github.com/rust-bitcoin/rust-bitcoin/pull/557 )
- Add [non-API breaking derives for error & transaction types ](https://github.com/rust-bitcoin/rust-bitcoin/pull/558 )
- [Fix error derives ](https://github.com/rust-bitcoin/rust-bitcoin/pull/559 )
- [Add function to check RBF-ness of transactions ](https://github.com/rust-bitcoin/rust-bitcoin/pull/565 )
- [Add Script:dust_value() to get minimum output value for a spk ](https://github.com/rust-bitcoin/rust-bitcoin/pull/566 )
- [Improving bip32 ChildNumber display implementation ](https://github.com/rust-bitcoin/rust-bitcoin/pull/567 )
- [Make Script::fmt_asm a static method and add Script::str_asm ](https://github.com/rust-bitcoin/rust-bitcoin/pull/569 )
- [Return BlockHash from BlockHeader::validate_pow ](https://github.com/rust-bitcoin/rust-bitcoin/pull/572 )
- [Add a method to error on non-standard hashtypes ](https://github.com/rust-bitcoin/rust-bitcoin/pull/573 )
- [Include proprietary key in deserialized PSBT ](https://github.com/rust-bitcoin/rust-bitcoin/pull/577 )
- [Fix Script::dust_value()'s calculation for non-P2*PKH script_pubkeys ](https://github.com/rust-bitcoin/rust-bitcoin/pull/579 )
- Add [Address to optimized QR string ](https://github.com/rust-bitcoin/rust-bitcoin/pull/581 ) conversion
- [Correct Transaction struct encode_signing_data_to doc comment ](https://github.com/rust-bitcoin/rust-bitcoin/pull/582 )
- Fixing [CI if base image's apt db is outdated ](https://github.com/rust-bitcoin/rust-bitcoin/pull/583 )
- [Introduce some policy constants from Bitcoin Core ](https://github.com/rust-bitcoin/rust-bitcoin/pull/584 )
- [Fix warnings for sighashtype ](https://github.com/rust-bitcoin/rust-bitcoin/pull/586 )
- [Introduction of Schnorr keys ](https://github.com/rust-bitcoin/rust-bitcoin/pull/589 )
- Adding [constructors for compressed and uncompressed ECDSA keys ](https://github.com/rust-bitcoin/rust-bitcoin/pull/592 )
- [Count bytes read in encoding ](https://github.com/rust-bitcoin/rust-bitcoin/pull/594 )
- [Add verify_with_flags to Script and Transaction ](https://github.com/rust-bitcoin/rust-bitcoin/pull/598 )
- [Fixes documentation intra-links and enforce it ](https://github.com/rust-bitcoin/rust-bitcoin/pull/600 )
- [Fixing hashes core dependency and fuzz feature ](https://github.com/rust-bitcoin/rust-bitcoin/pull/602 )
2020-12-20 21:50:13 +00:00
# 0.26.0 - 2020-12-21
- Add [signet support ](https://github.com/rust-bitcoin/rust-bitcoin/pull/291 )
- Add [wtxidrelay message and `WTx` inv type ](https://github.com/rust-bitcoin/rust-bitcoin/pull/446 ) for BIP 339
- Add [addrv2 support ](https://github.com/rust-bitcoin/rust-bitcoin/pull/449 )
- Distinguish [`FilterHeader` and `FilterHash` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/454 )
- Add [hash preimage fields ](https://github.com/rust-bitcoin/rust-bitcoin/pull/478 ) to PSBT
- Detect [write errors for `PublicKey::write_into` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/507 )
- impl `Ord` and `PartialOrd` [for `Inventory` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/517 )
- Add [binary encoding for BIP32 xkeys ](https://github.com/rust-bitcoin/rust-bitcoin/pull/470 )
- Add [Taproot Tagged Hashes ](https://github.com/rust-bitcoin/rust-bitcoin/pull/259 )
- Add [`message::MAX_INV_SIZE` constant ](https://github.com/rust-bitcoin/rust-bitcoin/pull/516 )
- impl [`ToSocketAddrs` for network addresses ](https://github.com/rust-bitcoin/rust-bitcoin/pull/514 )
- Add [new global fields to PSBT ](https://github.com/rust-bitcoin/rust-bitcoin/pull/499 )
- [Serde serialization of PSBT data ](https://github.com/rust-bitcoin/rust-bitcoin/pull/497 )
- [Make `Inventory` and `NetworkMessage` enums exhaustive ](https://github.com/rust-bitcoin/rust-bitcoin/pull/496 )
- [Add PSBT proprietary keys ](https://github.com/rust-bitcoin/rust-bitcoin/pull/471 )
- [Add `PublicKey::read_from` method symmetric with `write_to` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/542 )
- [Bump rust-secp to 0.20, turn off `recovery` feature by default ](https://github.com/rust-bitcoin/rust-bitcoin/pull/545 )
- [Change return value of `consensus_encode` to `io::Error` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/494 )
2020-10-26 15:44:19 +00:00
# 0.25.1 - 2020-10-26
- Remove an incorrect `debug_assert` that can cause a panic when running using
the dev profile.
2020-10-07 22:04:32 +00:00
# 0.25.1 - 2020-10-07
- [Expose methods on `Script` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/387 ) to generate various scriptpubkeys
- [Expose all cargo features of secp256k1 ](https://github.com/rust-bitcoin/rust-bitcoin/pull/486 )
- Allow directly creating [various hash newtypes ](https://github.com/rust-bitcoin/rust-bitcoin/pull/388 )
- Add methods to `Block` [to get the coinbase tx and BIP34 height commitment ](https://github.com/rust-bitcoin/rust-bitcoin/pull/444 )
- [Add `extend` method ](https://github.com/rust-bitcoin/rust-bitcoin/pull/459 ) to bip32::DerivationPath
- [Alias `(Fingerprint, DerivationPath)` as `KeySource` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/480 )
2020-10-16 20:14:21 +00:00
- [Add serde implementation for PSBT data structs ](https://github.com/rust-bitcoin/rust-bitcoin/pull/497 )
- [Add FromStr/Display implementation for SigHashType ](https://github.com/rust-bitcoin/rust-bitcoin/pull/497/commits/a4a7035a947998c8d0d69dab206e97253fd8e048 )
2020-10-07 22:04:32 +00:00
- Expose [the raw sighash message ](https://github.com/rust-bitcoin/rust-bitcoin/pull/485 ) from sighash computations
2020-10-16 20:20:22 +00:00
- Add [support for signmessage/verifymessage style message signatures ](https://github.com/rust-bitcoin/rust-bitcoin/pull/413 )
2020-10-07 22:04:32 +00:00
2020-09-10 20:06:10 +00:00
# 0.25.0 - 2020-09-10
- **Bump MSRV to 1.29.0**
2020-09-10 16:48:06 +00:00
# 0.24.0 - 2020-09-10
- [Remove ](https://github.com/rust-bitcoin/rust-bitcoin/pull/385 ) the `BitcoinHash` trait
- [Introduce `SigHashCache` structure ](https://github.com/rust-bitcoin/rust-bitcoin/pull/390 ) to replace `SighashComponents` and support all sighash modes
- [Add ](https://github.com/rust-bitcoin/rust-bitcoin/pull/416 ) `Transaction::get_size` method
- [Export ](https://github.com/rust-bitcoin/rust-bitcoin/pull/412 ) `util::amount::Denomination`
- [Add ](https://github.com/rust-bitcoin/rust-bitcoin/pull/417 ) `Block::get_size` and `Block::get_weight` methods
- [Add ](https://github.com/rust-bitcoin/rust-bitcoin/pull/415 ) `MerkleBlock::from_header_txids`
- [Add ](https://github.com/rust-bitcoin/rust-bitcoin/pull/429 ) `BlockHeader::u256_from_compact_target`
- [Add ](https://github.com/rust-bitcoin/rust-bitcoin/pull/448 ) `feefilter` network message
- [Cleanup/replace ](https://github.com/rust-bitcoin/rust-bitcoin/pull/397 ) `Script::Instructions` iterator API
- [Disallow uncompressed pubkeys in witness address generation ](https://github.com/rust-bitcoin/rust-bitcoin/pull/428 )
- [Deprecate ](https://github.com/rust-bitcoin/rust-bitcoin/pull/451 ) `util::contracthash` module
- [Add ](https://github.com/rust-bitcoin/rust-bitcoin/pull/435 ) modulo division operation for `Uint128` and `Uint256`
- [Add ](https://github.com/rust-bitcoin/rust-bitcoin/pull/436 ) `slice_to_u64_be` endian conversion method
2020-01-07 19:27:05 +00:00
# 0.23.0 - 2020-01-07
- Update `secp256k1` dependency to `0.17.1` .
- Update `bitcoinconsensus` dependency to `0.19.0-1` .
- Update `bech32` dependency to `0.7.2` .
# 0.22.0 - 2020-01-07
2019-12-11 22:10:22 +00:00
- Add `ServiceFlags` type.
- Add `NetworkMessage::command` .
- Add `key::Error` .
- Add newtypes for specific hashes:
- `Txid`
- `Wtxid`
- `BlockHash`
- `SigHash`
- `PubkeyHash`
- `ScriptHash`
- `WPubkeyHash`
- `WScriptHash`
- `TxMerkleNode`
- `WitnessMerkleNode`
- `WitnessCommitment`
- `XpubIdentifier`
- `FilterHash`
- Refactor `CommandString` .
- Refactor `Reject` message.
- Rename `RejectReason` enum variants.
- Refactor `encode::Error` .
- Implement `Default` for `TxIn` .
- Implement `std::hash::Hash` for `Inventory` .
- Implement `Copy` for `InvType` enum.
- Use `psbt::Error` in `PartiallySignedTransaction::from_unsigned_tx` .
- Drop message decode max length to 4_000_000.
- Drop `hex` and `byteorder` dependencies.
2019-10-02 15:42:58 +00:00
# 0.21.0 - 2019-10-02
* Add [serde to `BlockHeader` and `Block` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/321 )
* [Clean up `StreamReader` API ](https://github.com/rust-bitcoin/rust-bitcoin/pull/318 ) (breaking change)
* Add [reject message ](https://github.com/rust-bitcoin/rust-bitcoin/pull/323 ) to p2p messages
# 0.20.0 - 2019-08-23
2019-08-21 18:59:40 +00:00
* Update `secp256k1` 0.15 and `bitcoinconsensus` 0.17
2018-08-22 21:18:15 +00:00
2019-08-16 15:34:01 +00:00
# 0.19.0 - 2019-08-16
* Add `Amount` and `SignedAmount` types.
* Add BIP-158 support with `BlockFilter` and related types.
* Add `util::misc::signed_msg_hash()` for signing messages.
* Add `MerkleBlock` and `PartialMerkleTree` types.
* bip32: Support serde serializaton for types and add some utility methods:
* `ChildNumber::increment`
* `DerivationPath::children_from`
* `DerivationPath::normal_children`
* `DerivationPath::hardened_children`
* Add `blockdata::script::Builder::push_verify` to verify-ify an opcode.
* Add `sendheaders` network message.
* Add `OutPoint::new()` method and JSON-serialize as `<txid>:<vout>` .
* Refactor `Address` type:
* Now supports segwit addresses with version >0.
* Add `Address::from_script` constructor.
* Add `Address::address_type` inspector.
* Parsing now returns an `address::Error` instead of `encode::Error` .
2019-08-16 18:00:02 +00:00
* Removed `bitcoin_bech32` dependency for bech32 payloads.
2019-08-16 15:34:01 +00:00
* bip143: Rename `witness_script` to `script_code`
* Rename `BlockHeader::spv_validate` to `validate_pow`
* Rename `OP_NOP2` and `OP_NOP3` to `OP_CLTV` and `OP_CSV`
* psbt: Use `BTreeMap` instead of `HashMap` to ensure serialization roundtrips.
* Drop `Decimal` type.
* Drop `LoneHeaders` type.
* Replace `strason` dependency with (optional) `serde_json` .
* Export the `bitcoin_hashes` and `secp256k1` dependent crates.
2019-08-16 18:00:02 +00:00
* Updated `bitcoin_hashes` dependency to v0.7.
* Removed `rand` and `serde_test` dependencies.
2019-08-16 15:34:01 +00:00
* Internal improvements to consensus encoding logic.
2019-03-21 23:20:06 +00:00
# 0.18.0 - 2019-03-21
2019-04-26 14:07:18 +00:00
* Update `bitcoin-bech32` version to 0.9
2019-03-21 23:20:06 +00:00
* add `to_bytes` method for `util::key` types
* add serde impls for `util::key` types
* contracthash: minor cleanups, use `util::key` types instead of `secp256k1` types
2019-03-04 17:51:38 +00:00
# 0.17.1 - 2019-03-04
* Add some trait impls to `PublicKey` for miniscript interoperability
2019-02-28 22:02:45 +00:00
# 0.17.0 - 2019-02-28 - ``The PSBT Release''
* **Update minimum rustc version to 1.22**.
* [Replace `rust-crypto` with `bitcoin_hashes`; refactor hash types ](https://github.com/rust-bitcoin/rust-bitcoin/pull/215 )
* [Remove `Address::p2pk` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/222/ )
* Remove misleading blanket `MerkleRoot` implementation; [it is now only defined for `Block` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/218 )
* [Add BIP157 ](https://github.com/rust-bitcoin/rust-bitcoin/pull/215 ) (client-side block filtering messages)
2019-03-01 16:13:56 +00:00
* Allow network messages [to be deserialized even across multiple packets ](https://github.com/rust-bitcoin/rust-bitcoin/pull/231 )
2019-02-28 22:02:45 +00:00
* [Replace all key types ](https://github.com/rust-bitcoin/rust-bitcoin/pull/183 ) to better match abstractions needed for PSBT
* [Clean up BIP32 ](https://github.com/rust-bitcoin/rust-bitcoin/pull/233 ) in preparation for PSBT; [use new native key types rather than `secp256k1` ones ](https://github.com/rust-bitcoin/rust-bitcoin/pull/238/ )
* Remove [apparently-used `Option` serialization ](https://github.com/rust-bitcoin/rust-bitcoin/pull/236#event-2158116421 ) code
* Finally merge [PSBT ](https://github.com/rust-bitcoin/rust-bitcoin/pull/103 ) after nearly nine months
2019-01-15 19:05:27 +00:00
# 0.16.0 - 2019-01-15
* Reorganize opcode types to eliminate unsafe code
* Un-expose some macros that were unintentionally exported
* Update rust-secp256k1 dependency to 0.12
* Remove `util::iter::Pair` type which does not belong in this library
* Minor bugfixes and optimizations
2018-11-08 15:05:13 +00:00
# 0.15.1 - 2018-11-08
* [Detect p2pk addresses with compressed keys ](https://github.com/rust-bitcoin/rust-bitcoin/pull/189 )
2018-11-03 15:41:29 +00:00
# 0.15.0 - 2018-11-03
* [Significant API overhaul ](https://github.com/rust-bitcoin/rust-bitcoin/pull/156 ):
* Remove `nu_select` macro and low-level networking support
* Move `network::consensus_params` to `consensus::params`
* Move many other things into `consensus::params`
* Move `BitcoinHash` from `network::serialize` to `util::hash` ; remove impl for `Vec<u8>`
* Rename/restructure error types
* Rename `Consensus{De,En}coder` to `consensus::{De,En}coder`
* Replace `Raw{De,En}coder` with blanket impls of `consensus::{De,En}coder` on `io::Read` and `io::Write`
* make `serialize` and `serialize_hex` infallible
* Make 0-input transaction de/serialization [always use segwit ](https://github.com/rust-bitcoin/rust-bitcoin/pull/153 )
* Implement `FromStr` and `Display` for many more types
2018-09-11 18:04:02 +00:00
# 0.14.2 - 2018-09-11
* Add serde support for `Address`
2018-08-28 17:15:37 +00:00
# 0.14.1 - 2018-08-28
* Reject non-compact `VarInt` s on various types
* Expose many types at the top level of the crate
* Add `Ord` , `PartialOrd` impls for `Script`
2018-08-22 21:18:15 +00:00
# 0.14.0 - 2018-08-22
* Add [regtest network ](https://github.com/rust-bitcoin/rust-bitcoin/pull/84 ) to `Network` enum
* Add [`Script::is_op_return()` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/101/ ) which is more specific than
`Script::is_provably_unspendable()`
* Update to bech32 0.8.0; [add Regtest bech32 address support ](https://github.com/rust-bitcoin/rust-bitcoin/pull/110 )
* [Replace rustc-serialize dependency with hex ](https://github.com/rust-bitcoin/rust-bitcoin/pull/107 ) as a stopgap
toward eliminating any extra dependencies for this; clean up the many independent hex encoders and decoders
throughout the codebase.
* [Add conversions between `ChildNumber` and `u32` ](https://github.com/rust-bitcoin/rust-bitcoin/pull/126 ); make
representation non-public; fix documentation
* [Add several derivation convenience ](https://github.com/rust-bitcoin/rust-bitcoin/pull/129 ) to `bip32` extended keys
* Make `deserialize::deserialize()` [enforce no trailing bytes ](https://github.com/rust-bitcoin/rust-bitcoin/pull/129 )
* Replace `TxOutRef` with `OutPoint` ; use it in `TxIn` struct.
* Use modern `as_` `to_` `into_` conventions for array-wrapping types; impl `Display` rather than `ToString` for most types
* Change `script::Instructions` iterator [to allow rejecting non-minimal pushes ](https://github.com/rust-bitcoin/rust-bitcoin/pull/136 );
fix bug where errors would iterate forever.
* Overhaul `util::Error` ; introduce `serialize::Error` [and use it for `SimpleDecoder` and `SimpleDecoder` rather
than parameterizing these over their error type](https://github.com/rust-bitcoin/rust-bitcoin/pull/137).
* Overhaul `UDecimal` and `Decimal` serialization and parsing [and fix many lingering parsing bugs ](https://github.com/rust-bitcoin/rust-bitcoin/pull/142 )
* [Update to serde 1.0 and strason 0.4 ](https://github.com/rust-bitcoin/rust-bitcoin/pull/125 )
* Update to secp256k1 0.11.0
* Many, many documentation and test improvements.
2018-11-03 15:32:38 +00:00
# 0.13.1
* Add `Display` trait to uints, `FromStr` trait to `Network` enum
* Add witness inv types to inv enum, constants for Bitcoin regtest network, `is_coin_base` accessor for tx inputs
* Expose `merkleroot(Vec<Sha256dHash>)`
# 0.13
* Move witnesses inside the `TxIn` structure
* Add `Transaction::get_weight()`
* Update bip143 `sighash_all` API to be more ergonomic
# 0.12
* The in-memory blockchain was moved into a dedicated project rust-bitcoin-chain.
* Removed old script interpreter
* A new optional feature "bitcoinconsensus" lets this library use Bitcoin Core's native
script verifier, wrappend into Rust by the rust-bitcoinconsenus project.
See `Transaction::verify` and `Script::verify` methods.
* Replaced Base58 traits with `encode_slice` , `check_encode_slice` , from and `from_check` functions in the base58 module.
* Un-reversed the Debug output for Sha256dHash
* Add bech32 support
* Support segwit address types
### 0.11
* Remove `num` dependency at Matt's request; agree this is obnoxious to require all
downstream users to also have a `num` dependency just so they can use `Uint256::from_u64` .