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
Hsiao-Wei Wang
f6dc059a8e
Replace assert
with raising exceptions
2020-09-14 22:49:36 +08: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
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
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
Hsiao-Wei Wang
e9fa2192df
Create uuid at execution time instead of class attribute
2020-05-26 21:09:20 +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
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