Carl Beekhuizen
f271d96ad2
chmod keystores and deposit_data.json to 440
2020-12-18 16:54:46 +01:00
Hsiao-Wei Wang
b6f7ca93c3
Fix
2020-11-05 17:13:32 +08:00
vbuterin
59a12e927e
Fixed saving the path
2020-11-05 14:35:25 +08:00
vbuterin
0bfb657894
Proposed tweak to from_json and from_file
...
This feels to me like it would be more intuitive behavior; the `from_json` behaves the same way for Keystore and KeystoreCrypto, and it exposes a way for people to use the library with json that is not saved in a file anywhere.
2020-11-05 14:34:01 +08:00
Carl Beekhuizen
633409c059
Implement @hwwhww's code review suggestions
2020-10-26 17:51:38 +01:00
Carl Beekhuizen
52b36bcdff
Fix indentation error
2020-10-26 17:21:57 +01:00
Carl Beekhuizen
3891cbada5
Apply suggestions from code review
...
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
2020-10-21 16:32:25 +02:00
Carl Beekhuizen
016d2c9391
merge in dev and resolve conflicts
2020-10-14 17:29:09 +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
03cf1bbf10
Update to EIP 2333's BLS v4 support
2020-09-17 16:01:34 +02:00
Hsiao-Wei Wang
f6dc059a8e
Replace assert
with raising exceptions
2020-09-14 22:49:36 +08:00
Carl Beekhuizen
f3150297f6
Clarify mnemonic passowrds
2020-08-24 16:32:54 +02:00
Carl Beekhuizen
4542faca87
Apply Hww's suggestions (mostly "Returns" -> "Return")
...
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
2020-08-24 16:29:42 +02:00
Carl Beekhuizen
f247b1b613
Enhances docstrings to clarify function purposes
2020-08-24 16:01:48 +02:00
Carl Beekhuizen
0e172661a8
Creates new_mnemonic cli options
2020-08-24 13:55:06 +02:00
Carl Beekhuizen
1e9f50f3fd
Adds language detection and verification of mnemonics
2020-08-23 18:04:47 +02:00
Carl Beekhuizen
5d2671f701
Prerequisites for pyinstaller
2020-07-24 12:24:23 +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
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
Carl Beekhuizen
39703588d7
Unicode support keystore passwords
2020-06-26 16:10:19 +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
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
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
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
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
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