Ethan Frey
f2c881573c
Merge pull request #26 from odeke-em/improve-reverse-bytes+tests
hd: optimize ReverseBytes + add tests
7 years ago
Emmanuel Odeke
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)
```
7 years ago
Ethan Frey
bf355d1b58
Merge pull request #23 from tendermint/feature/short-recover-text
Shorter recovery seed
7 years ago
Ethan Frey
050b965708
Code cleanup ala Emmanuel
7 years ago
Ethan Frey
10222adaf1
Remove deprecated code. Now in basecoin/weave
7 years ago
Ethan Frey
c20e83565c
Recovery also works with secp256 keys
7 years ago
Ethan Frey
4ff889a236
Use 16 random bytes for seed and key, crc16 by default
7 years ago
Ethan Frey
65da3cf340
Add crc16 support
7 years ago
Ethan Frey
95b7c9e09c
Merge branch 'develop'
8 years ago
Ethan Frey
d31cfbaeaa
Fixed up help text for "keys recover"
8 years ago
Ethan Frey
19bd8dc3a6
Merge branch 'develop'
8 years ago
Ethan Frey
ad70b22226
Update to 0.2.1
8 years ago
Ethan Frey
8bdb5ceda4
Merge pull request #19 from tendermint/feature/cli-improvements
cli improvements
8 years ago
Ethan Frey
d665c9ef10
Code cleanup from review comments
8 years ago
Ethan Frey
a944bdebfc
Make sure prompt looks good in interactive mode
8 years ago
Ethan Frey
1ab9ab9494
Add delete and recover commands, and test them
8 years ago
Ethan Frey
e9537b2da6
Freshen up existing cmd files
8 years ago
Ethan Frey
7d08ea4c09
Fixed all tests and binaries to compile
8 years ago
Ethan Frey
53e19e3dfa
Add codec to keys.Manager, recovery test passes
8 years ago
Ethan Frey
7108dedc21
Fix broken key manager tests
8 years ago
Ethan Frey
15609e1219
Updated Manager interface to return seed on create, fix server tests
8 years ago
Ethan Frey
56200e167a
Use go-bindata to embed wordlist in a binary
8 years ago
Ethan Frey
878c8b3a87
Removed obsolete file
8 years ago
Ethan Frey
1e15c8f75b
Extend wordcodec benchmarks
8 years ago
Ethan Frey
daab270ff7
First obvious speedup
8 years ago
Ethan Frey
1e978ba838
Import multiple language wordbanks, test them
8 years ago
Ethan Frey
2c0d52f4b5
Add typo detector test, fix panics
8 years ago
Ethan Frey
65c880e753
Test validation of word banks upon load
8 years ago
Ethan Frey
ad029d1293
Integrate ecc into word-byte codec
8 years ago
Ethan Frey
0b0e994cd1
Add crc64, constructors
8 years ago
Ethan Frey
ce6b08761e
Improve crc32
8 years ago
Ethan Frey
55a25f0f62
Add first pass of ecc checksuming
8 years ago
Ethan Frey
e20cdfcbae
Cleanup wordcodec
8 years ago
Ethan Frey
2278f566bf
Add beginning of wordcodec for bytes
8 years ago
Ethan Frey
ea4f45828d
Update circle ci for new cli tests
8 years ago
Ethan Frey
0c32d2722f
#17 - better support passwords in tests, more cli tests
8 years ago
Ethan Frey
0edd1297a9
Got basic key test working
8 years ago
Ethan Buchman
7dff40942a
Merge pull request #15 from tendermint/develop
v0.2.0
8 years ago
Ethan Buchman
c61497b56e
CHANGELOG: update release date
8 years ago
Ethan Frey
438b16f1f8
Merge pull request #16 from tendermint/data-codegen
Use codegen to create wrappers for interfaces
8 years ago
Ethan Frey
db5cb8d92c
Change codegen name holder->wrapper
8 years ago
Ethan Frey
bee63ce4ff
Cleaned up build process, moved codegen to separate package in go-wire
8 years ago
Ethan Frey
79c580492e
add make codegen for gen
8 years ago
Ethan Frey
746a2e286d
Codegen wrappers for privkey and signature as well
8 years ago
Ethan Frey
ee200d998f
Fix unwrap for proper json format
8 years ago
Ethan Frey
f16f711992
First code from codegen... wrong names
8 years ago
Ethan Frey
c38a6f55b3
Prepare for codegen
8 years ago
Ethan Buchman
a42b10e0fe
update glide
8 years ago
Ethan Buchman
d901fba662
add changelog and version
8 years ago
Ethan Frey
e71bbb2509
Update to make full use of new tmlibs/cli helpers
8 years ago