Hsiao-Wei Wang
b6f7ca93c3
Fix
2020-11-05 17:13:32 +08:00
Hsiao-Wei Wang
eb37e129c0
Apply suggestions from code review
...
Co-authored-by: Carl Beekhuizen <carl@ethereum.org>
2020-11-04 03:39:55 +08:00
Hsiao-Wei Wang
fb498650f3
Update tests/test_cli/test_regeneration.py
2020-11-04 02:33:08 +08:00
Hsiao-Wei Wang
1208820864
Rename test_deposit
test case to test_existing_mnemonic
2020-11-04 02:09:23 +08:00
Hsiao-Wei Wang
6f54965486
Add test_regeneration.py
2020-11-04 02:05:03 +08:00
Carl Beekhuizen
014e34ce1b
Merge in dev
2020-11-02 16:59:19 +01:00
Carl Beekhuizen
f4d734173d
Adds tests for both new and existing mnemonics via CLI
2020-10-28 19:07:13 +01:00
Hsiao-Wei Wang
076469a531
Add password length validation - take 2 ( #138 )
...
* [WIP] Add password length validation
* Workaround: use click callback function
* Minor rewording
2020-10-27 14:05:12 +08:00
Carl Beekhuizen
633409c059
Implement @hwwhww's code review suggestions
2020-10-26 17:51:38 +01:00
Carl Beekhuizen
4ff9f2a01f
Clarifies the dangers of mnemonic-passwords
2020-10-20 15:51:20 +02:00
Carl Beekhuizen
016d2c9391
merge in dev and resolve conflicts
2020-10-14 17:29:09 +02:00
Carl Beekhuizen
6839782b14
Merge pull request #121 from ethereum/safe_crypto_wrappers
...
Adds parameter safety checks to crypto wrappers
2020-10-01 12:56:49 +02:00
Hsiao-Wei Wang
45e2093116
Bump py-ecc to v5.0.0
2020-10-01 01:57:23 +08:00
Carl Beekhuizen
1e04ab2566
Linting is a thing
2020-09-29 16:31:22 +02:00
Carl Beekhuizen
d3a6f7d589
Pass cli tests
2020-09-29 16:24:18 +02:00
Carl Beekhuizen
0fd3c0b189
Break new and existing mnemonics into separate files with generate_keys subcommand
2020-09-28 16:49:37 +02:00
Carl Beekhuizen
389b48f851
Adds parameter safety checks to crypto wrappers
2020-09-24 15:38:39 +02:00
Carl Beekhuizen
220e1e7cb6
Add newline to make linter happy
2020-09-17 16:22:26 +02:00
Carl Beekhuizen
03cf1bbf10
Update to EIP 2333's BLS v4 support
2020-09-17 16:01:34 +02:00
Hsiao-Wei Wang
b0ee4a2ffc
Add more tests
2020-09-14 23:05:02 +08:00
Carl Beekhuizen
1e9f50f3fd
Adds language detection and verification of mnemonics
2020-08-23 18:04:47 +02:00
Hsiao-Wei Wang
f9fd7a169c
Add network (chain) name selection to prompt
2020-07-28 00:32:40 +08:00
Carl Beekhuizen
f6ae9801ca
Additional tests for control char stripping
...
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
2020-07-23 11:16:29 +02:00
Carl Beekhuizen
8fe4ca8233
Adds tests for stripping of control chars for passwords
2020-07-23 03:09:06 +02:00
Carl Beekhuizen
a13294741f
Adds description field to keystores
2020-07-09 15:59:03 +02:00
Carl Beekhuizen
353c40215f
Merge branch 'dev' into carl_eip2335_unicode
...
* dev: (22 commits)
Remove BLS incompatability warning
Adds preproduction warning
Adds typing & Moves global variables into pytest function args
Linting fixes
Test key_info != b''
import pytest into test_tree
Apply suggestions from @hwwhww's code review
Fix lint
Add Altona setting
Remove extra newline (lint)
Update tests for new EIP2333 (bls v2 compliant HKDF_mod_r)
Rename json file fields
Create uuid at execution time instead of class attribute
Add uuid test
Fix key path
Add Witti
gitignore dist/
Revert to DepositMessage & DepositData as per spec
Add fork_version
adds build/ to .gitignore
...
2020-07-06 21:19:07 +02:00
Carl Beekhuizen
6788781a4b
Adds typing & Moves global variables into pytest function args
2020-06-30 11:57:06 +02:00
Carl Beekhuizen
7ffe1edacd
Merge pull request #41 from ethereum/carl_eip2333_blsv2
...
Update tests for new EIP2333 (bls v2 compliant HKDF_mod_r)
2020-06-29 17:01:14 +02:00
Carl Beekhuizen
f6c9d4b8fd
Linting fixes
2020-06-29 16:44:17 +02:00
Carl Beekhuizen
dbfbaccca9
Test key_info != b''
2020-06-29 16:22:09 +02:00
Carl Beekhuizen
ba585f8b8e
import pytest into test_tree
2020-06-29 16:21:20 +02:00
Carl Beekhuizen
9557f3cabb
Apply suggestions from @hwwhww's code review
...
* Tests are of type none.
* Parameters passed in to tests instead of using global variables
* remove debugging print left in
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
2020-06-29 11:48:59 +02:00
Carl Beekhuizen
39703588d7
Unicode support keystore passwords
2020-06-26 16:10:19 +02:00
Carl Beekhuizen
9d2008eb4e
Remove extra newline (lint)
2020-06-19 16:45:00 +02:00
Carl Beekhuizen
6de81195ae
Update tests for new EIP2333 (bls v2 compliant HKDF_mod_r)
2020-06-19 16:33:46 +02:00
Hsiao-Wei Wang
49a8bded42
Add uuid test
2020-05-26 21:00:53 +08:00
Hsiao-Wei Wang
dd390b6463
Merge branch 'master' into hwwhww/tox
2020-05-23 22:32:31 +08:00
Hsiao-Wei Wang
41dd53c20b
Fix tox and windows tests
2020-05-23 22:28:41 +08:00
Hsiao-Wei Wang
10080093b6
Update script and readme
...
1. deposit.sh two steps: (i) install (ii) run tool
2. Update readme for all known usages
2020-05-23 22:28:41 +08:00
Hsiao-Wei Wang
175d4eafa7
Add encoding=utf-8
for mnemonic for Windows ( #24 )
2020-05-20 19:42:27 +08:00
Hsiao-Wei Wang
4460c7c261
Fix test_cli.py
folder initialization ( #16 )
2020-05-19 21:32:05 +08:00
Hsiao-Wei Wang
37b9650d19
Add script tests CI jobs
2020-05-12 16:21:16 +08:00
Hsiao-Wei Wang
f3cde09ba9
Add script and test
2020-05-12 15:35:56 +08:00
Hsiao-Wei Wang
ecdf73b425
Move cli/deposit.py back to eth2deposit for less confusion
2020-05-12 01:37:13 +08:00
Hsiao-Wei Wang
37fb6de225
Add test_cli ( #14 ) ( #15 )
...
* Add test_cli
* Check folder
2020-05-09 04:11:02 +08:00
Hsiao-Wei Wang
96200d76ae
Package reorg ( #10 )
...
* Move tests to /tests
* Rename `src` to `eth2deposit`
* Fix path
* Fix path and move eth2deposit/utils/credentials.py -> eth2deposit/credentials.py
* Update Makefile
* Kick CI cache
* Fix package setup
* Fix path back
* PR feedback from Carl
2020-05-08 21:34:09 +08:00