forked from chaintool/funga-eth
		
	making review changes #2
| @ -97,7 +97,7 @@ class Ciphers: | |||||||
|         return ciphertext |         return ciphertext | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def to_dict(private_key_bytes, kdf :str, passphrase=''): | def to_dict(private_key_bytes, kdf='scrypt', passphrase=''): | ||||||
|     private_key = coincurve.PrivateKey(secret=private_key_bytes) |     private_key = coincurve.PrivateKey(secret=private_key_bytes) | ||||||
| 
 | 
 | ||||||
|     if kdf == 'scrypt': |     if kdf == 'scrypt': | ||||||
|  | |||||||
| @ -79,7 +79,7 @@ def main(): | |||||||
|         else: |         else: | ||||||
|             pk_bytes = os.urandom(32) |             pk_bytes = os.urandom(32) | ||||||
|         pk = coincurve.PrivateKey(secret=pk_bytes) |         pk = coincurve.PrivateKey(secret=pk_bytes) | ||||||
|         o = to_dict(pk_bytes, 'scrypt', passphrase) |         o = to_dict(pk_bytes, passphrase) | ||||||
|         r = json.dumps(o) |         r = json.dumps(o) | ||||||
| 
 | 
 | ||||||
|     print(r)  |     print(r)  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user