Skip to content

Commit

Permalink
Remove secp256k1 and jacobian utils in favor or eth_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
onyb committed Oct 13, 2018
1 parent b14673d commit 6c51010
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 133 deletions.
14 changes: 3 additions & 11 deletions eth_tester/utils/accounts.py
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()
80 changes: 0 additions & 80 deletions eth_tester/utils/jacobian.py

This file was deleted.

42 changes: 0 additions & 42 deletions eth_tester/utils/secp256k1.py

This file was deleted.

0 comments on commit 6c51010

Please sign in to comment.