Commit Graph

22 Commits

Author SHA1 Message Date
Andrew Chow
2ea932ed78 tests: Use m/48' for multisig tests
Apparently m/48' (where 48 is the purpose number in a BIP 44 path) is
the standard path for use with multisigs. This is mistakenly called BIP
48 in many places, but no such BIP 48 actually exists. Anyways, Trezor
requires multisigs use m/48' for multisigs, so we need to use them in
our tests.
2020-08-20 15:27:26 -04:00
Andrew Chow
b7f3fa67c4 Remove psbt segwit fixes patch to bitcoind
This was merged into bitcoind, so no need to patch it ourselves.
2020-07-02 17:00:36 -04:00
Andrew Chow
d0de7b1326 Update bitcoind patch 2020-07-02 13:06:16 -04:00
Andrew Chow
55f9c7f61d Update speculos patch 2020-07-02 13:03:10 -04:00
Andrew Chow
da9e2e0435 tests: update bitcoind segwit fixes patch 2020-06-22 21:11:47 -04:00
Andrew Chow
5862228b18 Update Coldcard simulator patches
These got out of date and seem to be causing travis failures.
2020-06-22 19:41:42 -04:00
Andrew Chow
3b6131c84a test: Patch bitcoind to give out PSBTs with both UTXOs 2020-06-05 22:14:38 -04:00
Andrew Chow
d85be9edde serialization: put missing final_scriptwitness length
The length of a final_scriptwitness value was missing. Put it back in.
2020-05-15 20:54:34 -04:00
Andrew Chow
baf9090ce7 tests: Update speculos patch 2020-04-17 21:40:05 -04:00
Andrew Chow
124918cff8 tests: Update the speculos patch 2020-03-25 15:51:52 -04:00
Andrew Chow
f719449b4e tests: Add missing self.seen_msg_hash to speculos patch 2020-03-20 12:13:51 -04:00
Andrew Chow
e5808ac276 tests, ledger: Have speculos do button presses internally
Instead of having multiple threads and sockets to deal with
sending button presses, patch speculos to do that itself.
2020-03-19 18:27:42 -04:00
Andrew Chow
88db32c319 tests, coldcard: Add multisig setup and tests for coldcard 2019-12-20 22:52:59 -05:00
Andrew Chow
b7a6d440ea Build ledger emulator in travis 2019-12-06 20:53:10 -05:00
Andrew Chow
8b4494348a Change getxpub vectors to also have mnemonics and use mnenmonic for trezor 2019-11-13 15:55:24 -05:00
Stepan Snigirev
aff5f57d49 psbt test with unknowns 2019-09-27 21:09:57 +02:00
Andrew Chow
8aa047104a Add scripts to run tests and prepare test environments
Add a run_tests.py script which runs all of the tests.

Add a setup_environment.sh script which will download and build the Trezor
emulator, Coldcard simulator, and bitcoind.
2018-12-04 10:32:23 -05:00
Andrew Chow
d01cbae2b0 Add tests for Coldcard using Coldcard simulator
Using the coldcard simulator, test the  enumerate, getxpub,
getmasterxpub, and getkeypool commands. Signtx is tested if the
simulator is in non-headless mode as it requires user input.
Also tests fingerprint autodetect and device type only specified.
2018-12-04 10:32:23 -05:00
Andrew Chow
2272428236 Add tests for trezor using the emulator
Using the trezor emulator, test the  enumerate, getxpub,
getmasterxpub, getkeypool, and signtx commands.
Also tests fingerprint autodetect and device type only specified.
2018-12-04 10:32:23 -05:00
Andrew Chow
64816cbd80 Remove unneeded BIP 32 test 2018-12-04 10:32:23 -05:00
Andrew Chow
22f9e318f5 Implement BIP 32 public derivation and a test for it 2018-10-07 01:43:33 -04:00
Andrew Chow
0df47a68f0 Move tests to test subdir 2018-09-01 12:52:37 -04:00