Commit Graph

27 Commits

Author SHA1 Message Date
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
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
6de81195ae
Update tests for new EIP2333 (bls v2 compliant HKDF_mod_r) 2020-06-19 16:33:46 +02: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
Hsiao-Wei Wang
e9fa2192df
Create uuid at execution time instead of class attribute 2020-05-26 21:09:20 +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
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
0258ea7d67
Revert "Bump py_ecc to 4.0.0" 2020-05-26 15:58:11 +08: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
dd390b6463
Merge branch 'master' into hwwhww/tox 2020-05-23 22:32:31 +08: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
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
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