1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 05:48:23 +00:00
Commit Graph

8795 Commits

Author SHA1 Message Date
Pavol Rusnak
2002c815ff Merge pull request #56 from jhoenicke/master
New function ecdsa_verify_recover
2016-04-25 18:39:13 +02:00
Jochen Hoenicke
409783ba64
New function ecdsa_verify_recover
Moved the code from Trezor firmware to here for recovering the public key
when verifying a bitcoin message.  Fixed the signing and verification for
the unlikely case the r value overflows.
2016-04-25 18:02:24 +02:00
Jochen Hoenicke
a90257c422 Updated mktable to new api 2016-04-25 17:51:10 +02:00
Pavol Rusnak
6f66162e93
fix tools and gui 2016-04-25 17:46:01 +02:00
Pavol Rusnak
0590192536
add testcase for ed25519 2016-04-25 17:46:01 +02:00
Pavol Rusnak
3998e7e883 Merge pull request #55 from jhoenicke/multicurve
Updated cmake configuration for ed25519
2016-04-25 17:45:51 +02:00
Jochen Hoenicke
490fbed289 Adapted python unit test to new API 2016-04-25 17:44:37 +02:00
Jochen Hoenicke
269b779ead Updated cmake configuration for ed25519 2016-04-25 16:36:10 +02:00
Pavol Rusnak
cd24b2771c Merge pull request #54 from jhoenicke/multicurve
Test vectors for ed25519 + BIP-0032 / SLIP-0010
2016-04-25 13:47:20 +02:00
Pavol Rusnak
9c97812f1b Merge pull request #55 from EdwardBetts/master
Include tests in release source tarball
2016-04-25 12:02:00 +02:00
Edward Betts
0c0d7ef893 Include tests in release source tarball
It would be great to include the test suite in the pypi release tarball.
That way people who download and build the release can run the tests to
ensure the library is working.

Linux distributions, such as Debian, base their packages of Python
modules on the pypi release. This means the test suite can be run when
building a Debian package, it should catch mistakes in the packaging or
errors in dependencies.

I've written some more on this topic on the Debian Python mailing list.
https://lists.debian.org/debian-python/2016/04/msg00074.html
2016-04-25 07:23:59 +01:00
Jochen Hoenicke
295a493846
Test vectors for ed25519 + BIP-0032 / SLIP-0010 2016-04-23 23:44:01 +02:00
Jochen Hoenicke
51f02ff763
ed25519 support 2016-04-22 18:22:45 +02:00
Jochen Hoenicke
55edf71e27
ed25519 support 2016-04-22 18:21:58 +02:00
Jochen Hoenicke
698f40f385
BIP-32 without gaps, prepare non-ecdsa curves
* Split ecdsa_curve into curve_info and ecdsa_curve to support bip32 on
  curves that don't have a ecdsa_curve.
* Don't fail in key derivation but retry with a new hash.
* Adapted test case accordingly
2016-04-22 17:43:15 +02:00
Pavol Rusnak
e18bf6b3a8 Merge pull request #80 from jhoenicke/multicurve
Remove the public_key hack.
2016-04-21 14:30:05 +02:00
Jochen Hoenicke
6813ffb431
Remove the public_key hack.
It is no longer necessary to move the public key into a temporary buffer
since the node is specific for the curve and contains the right public
key.
2016-04-21 11:58:39 +02:00
Pavol Rusnak
4a3a0b83dd Merge pull request #79 from romanz/master
Add GPG v2.1 support by signing message digest
2016-04-21 00:13:10 +02:00
Pavol Rusnak
de30ffbf9a Merge pull request #53 from jhoenicke/multicurve
Multicurve
2016-04-20 20:40:59 +02:00
Jochen Hoenicke
16ff4387ae New test case for a bip32 hole in nist256 2016-04-20 20:35:22 +02:00
Roman Zeyde
2b2414cb91 Add GPG v2.1 support by signing message digest 2016-04-20 21:01:39 +03:00
Jochen Hoenicke
f8ac99ebb7 Check for error from get_curve_by_name. 2016-04-20 19:54:18 +02:00
Pavol Rusnak
0fa0e331f2
update trezor-crypto submodule 2016-04-20 16:54:04 +02:00
Pavol Rusnak
7191d3bba8 Merge pull request #78 from jhoenicke/multicurve
Multicurve
2016-04-20 16:53:07 +02:00
Pavol Rusnak
bf34b4269c Merge pull request #52 from jhoenicke/multicurve
Multicurve
2016-04-20 16:52:47 +02:00
Jochen Hoenicke
03c501d9e3 Do not use hardcoded string for secp256k1. 2016-04-20 15:39:15 +02:00
Jochen Hoenicke
d577410fc4 Unit tests for the NIST256P1 curve 2016-04-20 15:13:40 +02:00
Jochen Hoenicke
533c3beb63 Fixed uncompress_coords for NIST curve
The bn_sqrti was broken.  It didn't handle primes where all bits are set
in the lowest limb.
2016-04-20 15:09:11 +02:00
Jochen Hoenicke
b34be66a9c Updated tests 2016-04-20 10:43:53 +02:00
Jochen Hoenicke
0bc1b70c4a Use different seed modifier for different curves 2016-04-20 10:38:11 +02:00
Jochen Hoenicke
56238e63fc Added curve type to HD node.
Create a different root node for every curve type to separate the key
space.
2016-04-19 18:23:12 +02:00
Jochen Hoenicke
c983afd72f Added curve type to HDNode
Every curve gets it's own hierarchy and the curve is remembered in
HD node.  Fixed the private/public key derivations to use the right
modulus.
2016-04-19 18:21:56 +02:00
Pavol Rusnak
d8aeb63854
pass version/lock_time parameters from SignTx message to signing_init function 2016-04-16 04:47:09 +02:00
Pavol Rusnak
0567a429cf
fix typo 2016-04-16 04:42:41 +02:00
Pavol Rusnak
5695400c98
add version and lock_time fields to (Simple)SignTx 2016-04-16 04:38:28 +02:00
Pavol Rusnak
f4dd151eb9
change ripemd160 function names to match sha2 functions 2016-04-14 17:28:46 +02:00
Pavol Rusnak
86d6a0b782
adopt ripemd160 from mbedtls 2016-04-14 10:58:26 +02:00
slush0
863d6a22b7 Merge pull request #9 from quorumwallet/patch/quorum-url
Add Quroum Wallet to the URL whitelist
2016-03-15 11:42:53 +01:00
Alex Beregszaszi
31d7134d6a Add Quorum Wallet to the URL whitelist 2016-03-14 18:58:43 +00:00
Pavol Rusnak
d77152b5a5
use OPTFLAGS=-Os for bootloader docker build 2016-02-29 13:33:55 +01:00
karek314
da027f7652
bootloader autobuild in docker 2016-02-29 13:25:54 +01:00
Pavol Rusnak
a7ef132ce5
rework OPTFLAGS, add DBGFLAGS (so it's easier to just replace -O3 to -Os for building bootloader) 2016-02-19 00:27:40 +01:00
Pavol Rusnak
700bfdeee5
drop python 2.6 and older, 3.3 and older 2016-02-18 11:19:15 +01:00
Pavol Rusnak
f8da757c4f
bump version 2016-02-15 16:20:21 +01:00
Pavol Rusnak
7675a0aa5f
fix usage of inline/static 2016-02-15 15:29:19 +01:00
Pavol Rusnak
28651bd966
update submodules 2016-02-15 14:45:16 +01:00
Pavol Rusnak
8b7e6058ed
Revert "Added code to make trezor-agent work with keepkey."
This reverts commit 53e361b70b.

As requested by @dstanchfield here: https://github.com/trezor/python-trezor/pull/49#issuecomment-183486838
2016-02-12 23:11:57 +01:00
Pavol Rusnak
4c9149818a
bump version (to 1.3.5) 2016-02-12 18:29:06 +01:00
Pavol Rusnak
f3449fcbd7
fix spelling of TREZOR 2016-02-10 16:48:13 +01:00
Pavol Rusnak
c665350a35 Merge pull request #52 from kyuupichan/master
ProtocolMixin: make expand_path static
2016-02-10 16:25:27 +01:00