Commit Graph

58 Commits (426eae4dfcb853041419030bbb104cc2bbf6629f)

Author SHA1 Message Date
Andrew Kozlik 426eae4dfc fix(core): Ensure correct order when verifying external inputs in Bitcoin signing.
2 years ago
Andrew Kozlik d16b44bad6 feat(core): Verify signatures of all original inputs in replacement transactions.
2 years ago
Tomas Krnak 670d11d627 feat(core): add `tx` argument to `create_sig_hasher` method
2 years ago
Andrew Kozlik 605e128ca0 chore(core): Simplify path warning UI.
2 years ago
Andrew Kozlik 43f1d67289 feat(core): Support unverified external inputs.
2 years ago
Andrew Kozlik c9e6ca30c9 feat(core): Ensure input's script type and path match the scriptPubKey.
2 years ago
grdddj 3d505874aa feat(ci): create pyright tool and include it in CI
2 years ago
Pavol Rusnak b9bbd5fcd7 chore: update dependencies
2 years ago
Andrew Kozlik f17a435cdf refactor(core): Rename bitcoin_varint to compact_size.
2 years ago
Andrew Kozlik 0e58218f5f feat(core): Implement Bitcoin payment requests.
2 years ago
grdddj 9fc5bb546b style(core): full pyright-based type-checking
2 years ago
Andrew Kozlik 9052133fca fix(core): Ensure user is warned about non-standard paths.
2 years ago
Andrew Kozlik 221977ad9d chore(core): Convert SIGHASH_* consts to SigHashType enum.
3 years ago
Andrew Kozlik ae35086bb9 refactor(core): Rename Hash143 to SigHasher and replace preimage_hash() with two functions.
3 years ago
Andrew Kozlik 475b95b11e feat(core): Disable prevtx streaming for Taproot.
3 years ago
Andrew Kozlik 84e31310a1 feat(core): Support Taproot in SignatureVerifier.
3 years ago
Andrew Kozlik a17cdb7cfa feat(core): Implement Taproot signing.
3 years ago
Andrew Kozlik 381e8bc85a feat(core): Implement the BIP-341 common signature message computation.
3 years ago
Andrew Kozlik 99e4ed6f42 chore(core): Support script_pubkey parameter for Bitcoin inputs.
3 years ago
Andrew Kozlik 68ad1b07d2 feat(core): Recognize Taproot inputs.
3 years ago
Andrew Kozlik 7811204ed5 refactor(core/bitcoin): Use HashWriter in address derivation.
3 years ago
Andrew Kozlik 27e6f35f78 refactor(core/bitcoin): Change scripts to use writer semantics.
3 years ago
Andrew Kozlik 8538f55edc refactor(core/bitcoin): Use global static buffer for Tx serialization.
3 years ago
Jan Pochyla a8623c4b59 refactor(core): fix imports and use new protobuf API in apps
3 years ago
matejcik ea505b592c refactor(core): move empty_bytearray to trezor.utils
3 years ago
Martin Milata ac711fb8ee style(core): use more recent type annotation syntax
3 years ago
Andrew Kozlik b10acbe153 feat(core): Allow decreasing output amount in RBF transactions.
3 years ago
Andrew Kozlik 6de20a7dcd chore(core/bitcoin): Add DecredApprover.
3 years ago
Pavol Rusnak 1e8673bf5f style(core/apps): use new syntax for typing
3 years ago
Martin Milata ee64b65b26 refactor(core): call super().__init__() in subclasses
3 years ago
Andrew Kozlik b213a55428 chore(core): In apps.bitcoin move h_inputs back to bitcoin class.
4 years ago
Andrew Kozlik 4a0c5c371a feat(core): In apps.bitcoin implement replacement transaction flow.
4 years ago
Andrew Kozlik bd3fe1d789 chore(core): In apps.bitcoin create a separate class for transaction information.
4 years ago
Andrew Kozlik 7c2d690e45 chore(core): In apps.bitcoin allow get_tx_digest() to be used for original transactions.
4 years ago
Andrew Kozlik 5fc491c597 chore(core): In apps.bitcoin move BIP143 hashing back to a separate class.
4 years ago
matejcik e4785d47e0 style: apply black 20.8b1
4 years ago
matejcik 0eed360037 chore: make tx type names shorter
4 years ago
matejcik 37025e2a84 feat(core): use specialized protobufs in apps.bitcoin, enable typing
4 years ago
Andrew Kozlik 295710c37d core/bitcoin: Check ownership proofs using the provided commitment data.
4 years ago
Andrew Kozlik dad2852db9 core/bitcoin: Stream prev_tx after confirmation.
4 years ago
matejcik cd86f9f477 core/bitcoin: make change check more robust against short paths
4 years ago
Andrew Kozlik d6ee542deb core/bitcoin: Move transaction confirmation logic from Bitcoin to BasicApprover class.
4 years ago
Martin Milata 03f2dab6bc core: reduce gc.collect calls during bitcon sign_tx
4 years ago
Andrew Kozlik eb28998f98 core/bitcoin: Support multiple change-outputs.
4 years ago
Andrew Kozlik 37f4dcc7e5 core/bitcoin: Rename witness_p2wsh() to witness_multisig().
4 years ago
Andrew Kozlik 9cd600f79e core/bitcoin: Add special confirmation screen for transactions with external inputs.
4 years ago
Andrew Kozlik 712ec68c1b core/bitcoin: Add support for external inputs with proof of non-ownership.
4 years ago
Andrew Kozlik d4317d1536 core/bitcoin: Implement generation and verification of SLIP-0019 proofs of ownership.
4 years ago
Andrew Kozlik d48a372ca7 core/sign_tx: Implement support for signed external inputs.
4 years ago
Andrew Kozlik 78f14d286e core/sign_tx: Factor out get_legacy_tx_digest() from sign_nonsegwit_input().
4 years ago