-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove secp256k1 and jacobian utils in favor or eth_keys
- Loading branch information
Showing
3 changed files
with
3 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
import rlp | ||
|
||
from eth_utils import ( | ||
to_canonical_address, | ||
keccak, | ||
) | ||
|
||
from .secp256k1 import ( | ||
private_key_to_public_key, | ||
from eth_keys import ( | ||
keys, | ||
) | ||
|
||
|
||
def private_key_to_address(private_key): | ||
public_key = private_key_to_public_key(private_key) | ||
|
||
account = keccak(public_key)[12:] | ||
return account | ||
return keys.PrivateKey(private_key).public_key.to_canonical_address() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.