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
Hsiao-Wei Wang
4dcaa1caa0
Merge branch 'master' into dev
2020-06-25 11:36:53 +08: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
87a1e15c00
Merge pull request #32 from ethereum/hwwhww/fork_version
...
Add fork_version
2020-06-02 22:06:52 +08:00
Hsiao-Wei Wang
dbac6d236b
Rename json file fields
...
1. `deposit_data_root` -> `deposit_message_root`
2. `signed_deposit_data_root` -> `deposit_data_root`
2020-06-02 20:19:52 +08:00
Hsiao-Wei Wang
a784a73cdd
Merge branch 'master' into hwwhww/fork_version
2020-05-27 14:58:01 +08:00
Carl Beekhuizen
1f6f63bce3
Merge pull request #28 from ethereum/carl_CredentialList
...
CredentialList class
2020-05-26 16:25:47 +02:00
Hsiao-Wei Wang
4833b67ccb
Merge pull request #37 from ethereum/hwwhww/fix_path
...
Fix key path and some refactoring
2020-05-26 21:55:35 +08:00
Carl Beekhuizen
9f7069575b
Merge pull request #38 from ethereum/hwwhww/uuid
...
Create uuid during calling `encrypt` instead of using class attribute
2020-05-26 15:32:17 +02:00
Hsiao-Wei Wang
e9fa2192df
Create uuid at execution time instead of class attribute
2020-05-26 21:09:20 +08:00
Hsiao-Wei Wang
49a8bded42
Add uuid test
2020-05-26 21:00:53 +08:00
Hsiao-Wei Wang
72f0dd0852
Fix key path
2020-05-26 18:54:18 +08:00
Hsiao-Wei Wang
c59e89e47d
Add Witti
2020-05-26 16:13:12 +08:00
Carl Beekhuizen
4f481012d4
Merge pull request #35 from ethereum/hwwhww/bls_v0120_dev
...
Bump py_ecc to 4.0.0 (Eth2 spec v0.12.0, IETF BLS v2 + hash-to-curve v7)
2020-05-26 10:10:34 +02:00
Hsiao-Wei Wang
5fea96e8f7
Bump py_ecc to 4.0.0 (Eth2 spec v0.12.0, IETF BLS v2 + hash-to-curve v7)
2020-05-26 16:03:32 +08:00
Hsiao-Wei Wang
b3ab5cf0af
Merge pull request #34 from ethereum/revert-33-hwwhww/bls_v0120
...
Revert "Bump py_ecc to 4.0.0"
2020-05-26 16:00:48 +08:00
Hsiao-Wei Wang
0258ea7d67
Revert "Bump py_ecc to 4.0.0"
2020-05-26 15:58:11 +08:00
Hsiao-Wei Wang
c612662215
Merge pull request #33 from ethereum/hwwhww/bls_v0120
...
Bump py_ecc to 4.0.0
2020-05-26 14:59:41 +08:00
Carl Beekhuizen
23fdbdcd9e
gitignore dist/
2020-05-25 15:02:44 +02:00
Carl Beekhuizen
09203cf80d
Merge branch 'master' into carl_CredentialList
...
* master:
Fix lint setting
Update README
Fix tox and windows tests
Update script and readme
Try Windows
Add script tests CI jobs
Update README.md
Add script and test
Move cli/deposit.py back to eth2deposit for less confusion
Create tox.ini and add CircleCI jobs
2020-05-25 14:55:52 +02:00
Carl Beekhuizen
d96670d4ff
Revert to DepositMessage & DepositData as per spec
2020-05-25 14:54:36 +02:00
Hsiao-Wei Wang
20c1f43a50
Bump py_ecc to 4.0.0 (Eth2 spec v0.12.0, IETF BLS v2 + hash-to-curve v7)
2020-05-24 00:52:54 +08:00
Hsiao-Wei Wang
08eeed26ed
Add fork_version
...
1. Use v0.12.0 signing format
2. `GENESIS_FORK_VERSION` may be various for mainnet and testnets. Add
option for it.
2020-05-24 00:23:51 +08:00
Hsiao-Wei Wang
2359a9d033
Merge pull request #18 from ethereum/hwwhww/tox
...
Add tox.ini and Python3.7 & 3.8 testenv
2020-05-23 22:38:25 +08:00
Hsiao-Wei Wang
f94ce0108c
Fix lint setting
2020-05-23 22:35:22 +08:00
Hsiao-Wei Wang
dd390b6463
Merge branch 'master' into hwwhww/tox
2020-05-23 22:32:31 +08:00
Hsiao-Wei Wang
4befd86d85
Update README
...
Update README
1. Remove `--password`
2. Update arguments table: change "Optional" to "Type"
2020-05-23 22:28:41 +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
b105e464c7
Try Windows
...
kick cache
Cache string
2020-05-23 22:28:38 +08:00
Carl Beekhuizen
f3eee88bc2
adds build/ to .gitignore
2020-05-22 16:11:38 +02:00
Carl Beekhuizen
050f3ca10a
Credential.deposit methods
2020-05-22 16:09:20 +02:00
Carl Beekhuizen
f8b6948a04
Merge in master
2020-05-22 15:25:44 +02:00
Hsiao-Wei Wang
46a5318531
Merge pull request #30 from ethereum/carl_withdrawl_pk_fix
...
Adds BLS_WITHDRAWAL_PREFIX to withdrawal_credentials
2020-05-22 16:54:06 +08:00
Carl Beekhuizen
72f64119b4
Adds BLS_WITHDRAWAL_PREFIX to withdrawal_credentials
2020-05-21 16:10:03 +02:00
Carl Beekhuizen
6c01fa968f
Creates CredentialList
2020-05-21 14:43:02 +02: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
581485f274
Use more strict mypy setting and update KeystoreModule
type ( #17 )
...
1. [KeystoreModule] change `params: dict` to `params:
Dict[str, Any]`
2. Rename `to_bytes` to `encode_bytes`
2020-05-19 21:34:16 +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
25c13e7114
Update README.md
2020-05-12 15:44:04 +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
6d7199a02f
Create tox.ini and add CircleCI jobs
2020-05-11 20:05:12 +08:00