Dusan Klinec
2658e253fa
xmr/bp: memory optimizations and improvements
...
- different approach to vector manipulation - more on the fly operations. Prepared for fully offloaded operations, BP on Trezor with constant memory.
- memory requirements reduced from (4MN + const) to (2MN + const)
- more raw methods to avoid unnecessary encoding/decoding
- chunking improved, chunk size set as a constant, changed from 64 to 32, missing pieces implemented to cover also BP 16
- proof_v8 support discontinued, old hardfork, not needed anymore
- get_exponent register clash fixed (for large vectors)
- reduced heap fragmentation by removing some temporary allocations
- hashing with len and offset to reduce heap fragmentation by creating a sliced arrays
- use to() wherever possible to avoid allocations and return of mutable private object
- global functions start with _ prefix, reduce import footprint
- use __slots__ in classes to minimize footprint
2020-03-02 12:17:03 +01:00
Tomas Susanka
51ef963738
tests: introduce UI tests for core
2020-01-03 14:28:27 +00:00
Pavol Rusnak
4462fb522c
core/nem: don't use mp_obj_new_str_of_type
2019-11-09 12:06:12 +00:00
Pavol Rusnak
5f980b50a0
core/monero: refactor bulletproof look-up-tables
2019-10-02 15:43:03 +00:00
Pavol Rusnak
78041d261b
crypto: refactor bip39 api
2019-09-23 17:56:36 +02:00
Pavol Rusnak
908bbfffef
core: remove remaning utility code for Bitcoin only firmware
2019-08-27 12:38:28 +02:00
Pavol Rusnak
c815bc410c
core: remove remaning Decred/Zcash code for Bitcoin only firmware
2019-08-27 12:38:28 +02:00
Pavol Rusnak
07ef01f3e4
core: introduce BITCOIN_ONLY flag
2019-08-23 13:52:10 +02:00
Andrew Kozlik
8297b81cd5
core/crypto: Add AES mode constants.
2019-08-09 12:46:08 +02:00
Andrew Kozlik
0a594ea1e9
Merge pull request #280 from trezor/andrewkozlik/slip-0021
...
Add SLIP-0021 implementation and tests.
2019-08-06 14:26:34 +02:00
Andrew Kozlik
217c910b4b
cardano: Implement SLIP-0023 and add SLIP-0039 support for Cardano.
2019-07-25 19:43:05 +02:00
Tomas Susanka
d2597d54c1
core/shamir: persistence
...
updates #270
2019-07-24 15:12:04 +02:00
andrew
5f604b5fea
core/seed: Add SLIP-0021 implementation and tests.
2019-07-16 14:30:28 +02:00
Jan Pochyla
0f6f05e4b7
core/typing: fix extmod docs and mocks
2019-07-09 14:05:14 +02:00
Jan Pochyla
3af75c0b8b
core/typing: improve extmod types
2019-07-09 12:51:48 +02:00
Tomas Susanka
49d6a35249
core: add slip39 keyboard
2019-06-23 21:33:58 +02:00
Pavol Rusnak
54d348228f
all: rename TREZOR to Trezor where possible
2019-06-17 20:28:29 +02:00
Roman Zeyde
b538eb3375
core/secp256k1_zkp: refactor API into a Context class
...
In order to prevent frequent memory allocations, the user can create a single
Context object and re-use it between subsequent cryptographic operations.
2019-05-31 17:29:49 +02:00
Pavol Rusnak
11aac67c82
core: fix last commit
2019-05-27 17:45:06 +02:00
Pavol Rusnak
ae749eedee
core/secp256k1_zkp: don't allocate static buffer
2019-05-27 17:21:14 +02:00
matejcik
0b50d671e1
make gen && make style
2019-05-17 15:48:57 +02:00
matejcik
482b4569f5
build: fix and auto-generate mock files
...
Squashed commit of the following:
commit 84d3486f59bda063f06521c8b695ea4b07781ec6
Author: matejcik <ja@matejcik.cz>
Date: Fri May 17 14:17:15 2019 +0200
mocks: complete
commit d538133a6d0fb4af06c7c81f80b8675869fb5908
Author: matejcik <ja@matejcik.cz>
Date: Fri May 17 14:12:26 2019 +0200
mocks part 3
commit 9f0b868d41dafaf487df6fc844db7f3368eabe1b
Author: matejcik <ja@matejcik.cz>
Date: Fri May 17 14:09:20 2019 +0200
mocks: update generated mocks
commit 5d80c18a7824ed16fc11cde4cdb8ebca7ed33400
Author: matejcik <ja@matejcik.cz>
Date: Thu May 16 15:49:40 2019 +0200
mocks wip 2
commit 4b576eb796136a61eb88cb0d281fa4e21eadada8
Author: matejcik <ja@matejcik.cz>
Date: Tue May 7 17:02:51 2019 +0200
WIP mocks part 1
commit cf3f0d4471ab74b478d2970b0bb178feae7c86a3
Author: matejcik <ja@matejcik.cz>
Date: Fri May 3 17:07:53 2019 +0200
core: add package to secp256k1_zkp for mocking
commit 8a12f26c8c0d99363c8df96012426abbbb3ff6cb
Author: matejcik <ja@matejcik.cz>
Date: Fri May 3 17:04:05 2019 +0200
core: blackify extmod docstring quotes
commit b6f239676dde8b60b001fcae4e5de80a71dbacf2
Author: matejcik <ja@matejcik.cz>
Date: Fri May 3 16:52:27 2019 +0200
core: make build_mocks directory agnostic
mocks: detect bad packages
mocks: revert noqa in favor of setup.cfg
mocks: fix broken comment formatting
2019-05-17 15:45:47 +02:00
matejcik
ffcb5e99cc
mocks: fix shamir package
2019-05-17 15:12:41 +02:00
Pavol Rusnak
35945239eb
core/embed: use MP_ROM_INT instead of MP_OBJ_NEW_SMALL_INT where intended
2019-05-13 16:52:21 +02:00
matejcik
2e578572dd
add EOS support
...
Squashed commit of the following:
commit 060563458fbc3b4a17f4d77ba5cd62d0c265c806
Author: matejcik <ja@matejcik.cz>
Date: Fri May 10 16:16:19 2019 +0200
skip t1 in eos test
commit f759089fef29501467b62bf1540715132a72c4cf
Author: matejcik <ja@matejcik.cz>
Date: Fri May 10 15:55:20 2019 +0200
make style
commit 3ecdd5f77b331d7a6e5a46a10c79d80f214f31bd
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Thu May 9 22:05:41 2019 +0300
Refinements in asset to to string conversion function according to code review and test cases for amounts less than 1
commit 72e44a35bada76abdd94ab866c2113a6d9d85191
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Wed May 8 00:27:45 2019 +0300
Moved to input_flow rest of the tests, cleanup and styling
commit 92f9acbabcbef44a6912b074a309393450f0c8de
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Tue May 7 21:47:12 2019 +0300
Fix for amounts less then 1
commit 8a0154f7432ab78e69a123202a97194d34c2a3cb
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Mon May 6 23:26:24 2019 +0300
removed unnecessary peace of code
commit b25c15de3eb1df863760e81ca69f09094349c26e
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Mon May 6 23:16:57 2019 +0300
Fixed validate path parameters
commit f0f6e7036a8b88d9c5c6b702a8d851e9a9bd3378
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Mon May 6 23:04:58 2019 +0300
Fixes
commit 0c64d3814300df86d452975b2bd46fea13f512d2
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Mon May 6 22:19:51 2019 +0300
Fixed styling
commit 41d1e77231e7da78fade9b2efa1b7d1980f0d3a8
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Mon May 6 22:13:58 2019 +0300
Changes to core, added CURVE to path validation
commit c045b4554ee8e058dbfe35f715b003d0d85ab1d4
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Mon May 6 22:07:37 2019 +0300
Changes according to review
commit 3f0e6cfd40e7d87dc3287bc3a0b2b9db5dea5377
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Mon Apr 29 21:37:16 2019 +0300
Added change to make expiration date timezone agnostic
commit efdf44c326cc3f3137c447e798db5439b57c91fa
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Thu Apr 18 00:14:30 2019 +0300
changes according to code review
commit 3b3723da8f8f536c7c370a14236ea81aac25080a
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Tue Apr 16 23:44:50 2019 +0300
Merged python to monorepo
commit da6b0c683c29388e15c889ecea6e7f7471961a19
Author: Andriy Tkachyshyn <atkachyshyn@gmail.com>
Date: Tue Apr 16 23:13:42 2019 +0300
Merged core to monorepo
2019-05-10 16:23:18 +02:00
Andrew Kozlik
1ee831f50c
Merge remote-tracking branch 'origin/master' into andrewkozlik/slip0039
2019-04-18 14:59:05 +02:00
Andrew Kozlik
c073d68a2d
crypto/shamir: Improve error handling.
2019-04-18 14:35:18 +02:00
Tomas Susanka
5dc0a1ee0a
core/extmod: return False or None consistently when a signature verification fails
...
from https://github.com/trezor/trezor-core/pull/535 by @real-or-random
2019-04-17 16:23:28 +02:00
Andrew Kozlik
0d21bca288
crypto: Move Shamir secret sharing to trezor-crypto.
2019-04-17 11:26:16 +02:00
Andrew Kozlik
d2a399debf
Merge remote-tracking branch 'core-local/andrewkozlik/slip0039' into andrewkozlik/slip0039
2019-04-17 10:53:00 +02:00
matejcik
e5670856a2
MONOREPO CREATE FROM trezor-core
2019-04-15 19:14:40 +02:00