python-bitcoinlib
python-bitcoinlib copied to clipboard
Python3 library providing an easy interface to the Bitcoin data structures and protocol.
Similar to Bitcoin Core's https://github.com/bitcoin/bitcoin/pull/29589 This is technically a breaking change, so would require a major version bump.
Support for P2TR (as well as bech32m encoding/decoding) would be good to have. A lot can probably be taken from the bitcoin functional tests.
Hello ! I would like to help you with my Pull Request. I'm a noobie but my master thesis is based on blockchain so found this git repo. Please tell...
https://github.com/petertodd/python-bitcoinlib/blob/173a73e74781dcd2edce120d8685550a88a73189/bitcoin/core/script.py#L692-L694 Because the witness version is actually a 'small int' opcode - that is, for witness version 1, without `decode_op_n()`, the returned value will be 0x51. It worked for version...
`DERSignature.stream_serialize` puts byte 0x30 between r and s. But `.stream_deserialize` expects 0x02 there. I think this is a bug in either `DERSignature.stream_serialize` or `DERSignature.stream_deserialize`.
I'm working a [nostr](https://github.com/nostr-protocol/nostr) client in Python, and Nostr uses Bitcoin Schnorr signature for signing. It would be great that python-bitcoinlib would support that, and since the signature is support...
See upstream updates for VerifyScript to handle witness validation: https://github.com/bitcoin/bitcoin/blob/a654626f076a72416a3d354218d7107571d6caaf/src/script/interpreter.cpp#L1472
@petertodd I set the URL to https://travis-ci.org/petertodd/python-bitcoinlib so you have to enable it on travis-ci ... I think it'd be better if you'd be in control of it ;-)
This adds decode_minikey to ~~base58.py~~ minikey.py. It checks for format and checksum errors. There are some test cases and an example cli tool: ``` $ ./examples/minikey.py -h usage: minikey.py [-h]...