kigawas/python-bip44

PrivateKey

Closed this issue · 2 comments

How can I see my PrivateKey

>>> from coincurve import PrivateKey
>>> from bip44 import Wallet
>>> from bip44.utils import get_eth_addr
>>> mnemonic = "purity tunnel grid error scout long fruit false embody caught skin gate"
>>> w = Wallet(mnemonic)
>>> sk, pk = w.derive_account("eth", account=0) # sk is the bytes key
>>> sk = PrivateKey(sk) # sk is the coincurve wrapped key