Commit Graph

190 Commits (426eae4dfcb853041419030bbb104cc2bbf6629f)

Author SHA1 Message Date
Andrew Kozlik 79fad70b05 fix: Improve wording when showing multisig XPUBS.
3 years ago
Pavol Rusnak 7f0e939359 feat(core): implement amount_unit for AuthorizeCoinJoin and SignTx
3 years ago
Pavol Rusnak e85ed74f8f core: implement GetAddress.ignore_xpub_magic
3 years ago
Pavol Rusnak 5728f54b78 core: return root_fingerprint in PublicKey
3 years ago
Pavol Rusnak 92452d54e5 feat(core): implement GetPublicKey.ignore_xpub_magic behaviour
3 years ago
Pavol Rusnak e660a518c6 fix(core): show xpub instead of pubkey in GetPublicKey dialog
3 years ago
Andrew Kozlik a609eb5e90 docs(core): Add comment about "Invalid original TXID" message.
4 years ago
Andrew Kozlik 06ce14096c chore(core): Reject replacement transactions which involve negative
4 years ago
Pavol Rusnak 1e8673bf5f style(core/apps): use new syntax for typing
4 years ago
Martin Milata ee64b65b26 refactor(core): call super().__init__() in subclasses
4 years ago
Pavol Rusnak 952adc5961
style(core): use PEP515 Underscores in Numeric Literals
4 years ago
Andrew Kozlik f421a213fd feat(core): Inform user about transaction finalization in Bitcoin replacement transactions.
4 years ago
matejcik 50e648636f doc(core): add references to schema specifications, add Purpose48 document
4 years ago
matejcik 665abe1e02 fix(core/bitcoin): validate path before asking to sign message (which could otherwise fail)
4 years ago
matejcik f10084117b feat(core/bitcoin): do not show path warning when GetAddress is called silently (fixes #1206)
4 years ago
matejcik a367426480 feat(core/bitcoin): use path schemas
4 years ago
Andrew Kozlik 70975008cd chore (core): In apps.bitcoin skip confirmation of fee in PayJoin if the user is not increasing their contribution.
4 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 469c131678 chore(core): In apps.bitcoin add confirm_replacement and confirm_modify_fee layouts.
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
Andrew Kozlik 9a594f4784 fix(core): Fix CoinJoin anonymity gain check in bitcoin approver.
4 years ago
Pavol Rusnak d8534b5ee6
perf(core/extmod): replace HMAC Python implementation with C
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
Martin Milata cff4955f93 core: implement SafetyChecks.PromptTemporarily
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
Tomas Susanka ebc99435ab Revert "core: remove ownership messages from the public api for now"
4 years ago
Tomas Susanka 0d5f00668f
core: remove ownership messages from the public api for now
4 years ago
Andrew Kozlik f2d669ecdc core/bitcoin: Use dynamic dispatch for confirmation dialogs in sign_tx.
4 years ago
Andrew Kozlik 02da5b7593 core/bitcoin: Show warning if nLockTime is set but ineffective due to all nSequence values being 0xffffffff.
4 years ago
Pavol Rusnak 0620911e46 core: allow spending coins from Bitcoin paths if the coin ...
4 years ago
Martin Milata 3f21e8f400 core: display coin name when signing message
4 years ago
Martin Milata 927ee0812b core: add hard limit for transaction fees
4 years ago
Tomas Susanka c9dc38c9f3 core: allow 49/x not 49/x' for Casa
4 years ago
matejcik cd86f9f477 core/bitcoin: make change check more robust against short paths
4 years ago
Andrew Kozlik 07d9b780a6 core/bitcoin: Change CoinJoin round ID length to 32 bytes and remove rate limiting.
4 years ago
Andrew Kozlik 377bff68f4 core/bitcoin: Implement DoPreauthorized message.
4 years ago
Andrew Kozlik b9cfecb8b8 core/bitcoin: Support preauthorization in SignTx message for CoinJoin.
4 years ago
Andrew Kozlik 97fc9b74ab core/bitcoin: Implement CoinJoinApprover.
4 years ago
Andrew Kozlik d6ee542deb core/bitcoin: Move transaction confirmation logic from Bitcoin to BasicApprover class.
4 years ago
Andrew Kozlik 00258f2d4d core/bitcoin: Support preauthorization in GetOwnershipProof message.
4 years ago
Andrew Kozlik c772de9d3c core/bitcoin: Support preauthorization in @with_keychain decorator.
4 years ago
Andrew Kozlik 208283e13e core/bitcoin: Implement AuthorizeCoinJoin message.
4 years ago
Andrew Kozlik 48a331aa1d core/bitcoin: Add CoinJoinAuthorization class.
4 years ago
Andrew Kozlik dc32a17335 core/bitcoin: Move BIP32_WALLET_DEPTH to common.
4 years ago
Martin Milata d955e3f1e5 core: rename class Overwintered to Zcashlike
4 years ago
Martin Milata 10387e1869 core: drop zcash v3 tx signing support
4 years ago
Martin Milata 3021233eaf core: remove unimports from bitcoin sign_tx layouts
4 years ago
matejcik 19ad1dae8b core/bitcoin: allow compatibility namespaces for Casa/Greenaddress
4 years ago
matejcik b741560997 core/bitcoin: drop unused validate_path_for_bitcoin_public_key
4 years ago
matejcik 407375b0c4 core/bitcoin: move BITCOIN_NAMES to common
4 years ago
matejcik c85d768b81 core: update references to keychain everywhere
4 years ago
Martin Milata 03f2dab6bc core: reduce gc.collect calls during bitcon sign_tx
4 years ago
matejcik 5e7fd3aea6 core: use utils.BufferReader instead of apps.common.BytearrayReader
4 years ago
matejcik d568afa80d core: improve protobuf field caching
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 64d9350de2 core/bitcoin: Implement GetOwnershipId message.
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 d52de28704 core/bitcoin: Implement BIP-322 SignatureProof container.
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
Andrew Kozlik 61e2d4d5e5 core/bitcoin: Implement signature verifier.
4 years ago
Andrew Kozlik 5378e12ba2 core/bitcoin: Clarify hash_type vs. sighash_type terminology.
4 years ago
Andrew Kozlik d1e043f417 core/bitcoin: Implement parsing of scripts and witnesses for signature verification.
4 years ago
Andrew Kozlik 173bb7ed13 core/bitcoin: Replace TxInputType parameter in input_derive_script.
4 years ago
Andrew Kozlik a901573ea2 core/bitcoin: Move script types from helpers to common.
4 years ago
Andrew Kozlik 3b6c1e5e6b core/crypto: Add functions for verifying DER encoded signatures.
4 years ago
Andrew Kozlik 9459c5a5c2 core/common: Add BytearrayReader and basic reader functions.
4 years ago
Andrew Kozlik 99f01cd316 core/sign_tx: Check script_pubkeys of inputs.
4 years ago
Andrew Kozlik e7f230d66e core/sign_tx: Use varint length encoding for witness stack items.
4 years ago
matejcik e6e3043096 all: implement support for pre-overwinter prevtx (fixes #1030)
4 years ago
matejcik 5209804fc3 core: relax path checks on GetPublicKey
4 years ago
Andrew Kozlik 42eddf8e04 core/sign_tx: validate prevout amount in all cases
4 years ago
Andrew Kozlik 7db3e930d4 core/sign_tx: Add further message sanitization checks.
4 years ago
matejcik 7a3637d5b0 core/sign_tx: add checks for version_group_id and branch_id fields
4 years ago
Tomas Susanka 9dfc08ca61 core/bitcoin: drop decred_script_version
4 years ago
matejcik 2f665c8f84 core: add exception to GetPublicKey for PSBT master fingerprint (fixes #999)
4 years ago
Tomas Susanka a2f790167d core/bitcoin: fix step 1 and 2 comments in signing
4 years ago
Tomas Susanka 1ac0f60550 core: update isort config to place relative imports last
4 years ago
Tomas Susanka aa115b6320 core: move decred writers to decred.py
4 years ago
Tomas Susanka 3084ee1eed core/bitcoin: move write_bitcoin_varint to common writers
4 years ago
Tomas Susanka 445f56d387 core/bitcoin: finalize bitcoin refactor
4 years ago