Commit Graph

158 Commits

Author SHA1 Message Date
008dba3af8 Test ledger calls 2017-10-24 11:38:06 +02:00
623bd803c2 write code to actually call ledger app 2017-10-24 11:38:06 +02:00
265e261c63 Add more test cases from running the ledger 2017-10-24 11:38:06 +02:00
7c5a10a7d4 Add tests for pub/priv key validation 2017-10-24 11:38:06 +02:00
06d74b24dd Wrote PrivKey/PubKey for ledger 2017-10-24 11:38:06 +02:00
74878ee313 Update code to work with current nano implementation 2017-10-24 11:38:06 +02:00
8220d59178 Work on using returned bytes as crypto keys 2017-10-24 11:38:06 +02:00
0781c12ede Message encoding for nano 2017-10-24 11:38:06 +02:00
a6e6b58c6b Merge pull request #41 from tendermint/metalinter
add metalinter to Makefile & apply some fixes
2017-10-23 19:32:07 -04:00
47d3fa4741 linting: a few fixes 2017-10-23 08:30:18 -04:00
8e031b367f Merge branch 'develop' into metalinter 2017-10-22 19:53:39 -04:00
8e7f0e7701 Upgrade keys to use bcrypt with salts (#38)
This commit adds salts to the library using bcrypt.
2017-10-12 14:26:59 +02:00
32dec98c1c example: fix func suffix 2017-10-10 17:33:51 -04:00
1775be1cd9 remove some assertXxx funcs 2017-10-05 22:19:48 -04:00
796024f42f linting: little more fixes 2017-10-04 18:27:35 -04:00
87cb57c3e5 linting: fixup some stuffs 2017-10-04 18:16:48 -04:00
7921fb0c05 linter: last fixes & add to circle 2017-10-04 17:53:56 -04:00
fe66a683bc linter: add metalinter to Makefile & apply some fixes 2017-10-04 17:53:56 -04:00
0418d32276 Merge branch 'doc-file-started' into develop 2017-09-22 20:46:10 -06:00
311e8c1bf0 Merge pull request #30 from tendermint/develop
Develop
2017-09-22 10:29:28 -04:00
e6ea9499ff glide and changelog 2017-09-22 10:22:55 -04:00
f6a2509764 doc.go file started
Fixes #35
Updates https://github.com/tendermint/coding/issues/27

Started a doc.go file to provide an overview/high level
dive into the functionality of this repo.

Also added an example_test.go file in which we can
put end-to-end code examples/actual usage patterns
that can be copied and pasted and will always have to
compile when tests are run to ensure that we don't regress.
2017-09-15 17:35:33 -06:00
50e7c07817 Use longer checksum again 2017-09-13 14:03:28 +02:00
c8b6d29161 version bump and changelog 2017-09-12 19:31:00 -04:00
09447fc059 Merge pull request #34 from tendermint/feature/remove-cli
Removed all cli as it goes into cosmos-sdk
2017-09-12 14:48:29 -04:00
21f6b346a3 Removed all cli as it goes into cosmos-sdk 2017-09-08 20:26:56 +02:00
ad42794b2e Merge pull request #33 from tendermint/feature/support-fundraiser-seeds
Import unencrypted private key
2017-09-08 20:23:44 +02:00
e283f580b7 Test importing raw private key 2017-09-08 20:14:51 +02:00
54260853d5 encoder accepts empty string as unencoded bytes 2017-09-08 20:14:51 +02:00
1bc8de4caa remove String() from Signature. closes #29 2017-09-06 02:32:37 -04:00
03d2b2446e Merge pull request #28 from odeke-em/godoc-for-references
README: add godoc instead of tedious MD regeneration
2017-07-28 15:09:54 -04:00
ce80f234c7 README: add godoc instead of tedious MD regeneration
Add a godoc reference to delegate indexing and references
to that service, thus keeping our library and usages upto date,
instead of relying on generated markdown that goes stale
especially for changing API signatures, and becomes tedious
where someone has to remember to always regenerate the README
markdown and then commit it.

Fixes #24
2017-07-28 13:01:31 -06:00
f2c881573c Merge pull request #26 from odeke-em/improve-reverse-bytes+tests
hd: optimize ReverseBytes + add tests
2017-07-28 14:28:16 -04:00
ae9c5b1ca0 hd: optimize ReverseBytes + add tests
* Optimized ReverseBytes to:
a) Minimally allocate --> 60.0% reduction in the number of allocations
b) Only walk halfway the length of the string thus performing
byte swaps from left to right. Improves the performance as well.
Complexity is O(n/2) instead of O(n) which is still O(n) but
benchmarks show the new time is in deed 1/2 of the original time.

* Added unit tests and some common cases to ensure correctness.

* Benchmark shoot out results:
```shell
name            old time/op    new time/op    delta
ReverseBytes-4     554ns ± 4%     242ns ± 3%  -56.20%  (p=0.000 n=10+10)

name            old alloc/op   new alloc/op   delta
ReverseBytes-4      208B ± 0%      114B ± 0%  -45.19%  (p=0.000 n=10+10)

name            old allocs/op  new allocs/op  delta
ReverseBytes-4      10.0 ± 0%       4.0 ± 0%  -60.00%  (p=0.000 n=10+10)
```
2017-07-28 12:21:41 -06:00
bf355d1b58 Merge pull request #23 from tendermint/feature/short-recover-text
Shorter recovery seed
2017-07-27 16:11:03 -04:00
050b965708 Code cleanup ala Emmanuel 2017-07-27 15:59:59 -04:00
10222adaf1 Remove deprecated code. Now in basecoin/weave 2017-07-26 16:12:25 -04:00
c20e83565c Recovery also works with secp256 keys 2017-07-22 05:53:46 -04:00
4ff889a236 Use 16 random bytes for seed and key, crc16 by default 2017-07-22 05:44:09 -04:00
65da3cf340 Add crc16 support 2017-07-22 05:25:59 -04:00
95b7c9e09c Merge branch 'develop' 2017-06-23 09:11:30 +02:00
d31cfbaeaa Fixed up help text for "keys recover" 2017-06-23 09:10:59 +02:00
19bd8dc3a6 Merge branch 'develop' 2017-06-21 19:36:11 +02:00
ad70b22226 Update to 0.2.1 2017-06-21 19:35:57 +02:00
8bdb5ceda4 Merge pull request #19 from tendermint/feature/cli-improvements
cli improvements
2017-06-21 19:00:25 +02:00
d665c9ef10 Code cleanup from review comments 2017-06-21 18:57:32 +02:00
a944bdebfc Make sure prompt looks good in interactive mode 2017-06-20 20:46:00 +02:00
1ab9ab9494 Add delete and recover commands, and test them 2017-06-20 20:34:13 +02:00
e9537b2da6 Freshen up existing cmd files 2017-06-20 19:50:39 +02:00
7d08ea4c09 Fixed all tests and binaries to compile 2017-06-20 18:50:53 +02:00