Chainside-btcpy

Latest version: v0.6.5

Safety actively analyzes 619599 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.6.4

Added
* Method to check whether two `TxIn`s spend the same output

Fixed
* `StackData.__str__` for display in `Witness`es
* RBF detection
* `CoinBaseTxIn.to_json` in case of SegWit coinbases

Backward compatibility
* No public interface breaking

0.6

Added
* `TransactionFactory` class that can instantiate either a `Transaction` or a `SegWitTransaction` from json, hex or bytes
* `Address` class now have a `to_script` method that generates the corresponding scriptPubKey
* More high-level interface to `Locktime` and `Sequence` classes
* Absolute and relative timelock solvers are now separated and take `Locktime`/`Sequence` as input so that the `spend` method can automatically fill in locktime and sequence numbers in the resulting signed transactions

Fixed
* Deserialization interface inconsistencies (see 42)

Backward compatibility
The following changes can break backward compatibility:
* `TimelockScript` has been renamed to `AbsoluteTimelockScript`
* `Transaction` now fails when trying to `unhexlify` a `SegWitTransaction` and vice versa
* `BaseAddress` has been renamed to `Address`, `Address` to `ClassicAddress`

0.5.1

Fixes
Python3.3 compatibility

0.5

Added
* Support for 0x06 and 0x07 pubkey prefixes
* Strict mode

Fixed
* `StackData` serialisation

Backward compatibility
* many methods that previously expected a `check_network` flag, now expect a `strict` flag with the same semantics
* some `script_pubkey`s that were previously recognised as `'nonstandard'` will now be recognised as the appropriate type if strict is set to `False`

0.4

Added
* New way to create addresses from scripts
* Many test vectors on SegWit-over-P2SH address generation
* All Bitcoin-related constants have been moved to a separate file for better code readability and easier forking by other coins

Fixed
* Ambiguous semantics between `address()` and `to_address()` in scripts

Backward compatibility
* The `to_address()` method in scripts no longer exists

0.3.3

Added
* `__eq__` methods on `Block` and `Transaction`
* Test vectors

Fixed
* Parsing of 00 as a 1-byte push operation
* Parsing of invalid push operations
* `TxIn.from_json` method now properly instantiates `CoinBaseScriptSig` where appropriate
* Generic `Scripts` unhexlify method now works as expected (i.e. no identification is performed on the unhexlifying of `Script`s, `ScriptPubKey`s and `ScriptSig`s)

Backward compatibility
* Should not break past usage, apart from usage that for some reason relied on the bugs that are now fixed

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.