Last active
October 30, 2018 23:58
-
-
Save brianonn/14db88814f1fc6324b817ea11fdeaecd to your computer and use it in GitHub Desktop.
make an ethereum address
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
#!/usr/bin/env python3 | |
import os | |
import gnupg | |
from pywallet import wallet | |
# OS X hack fixed in a newer release of gnupg | |
gnupg._parsers.Verify.TRUST_LEVELS["ENCRYPTION_COMPLIANCE_MODE"] = 23 | |
seed=wallet.generate_mnemonic() | |
w=wallet.create_wallet(network="ETH", seed=seed, children=1) | |
address=w["children"][0]["address"] | |
mnemonic=w["seed"] | |
gpg = gnupg.GPG(homedir=os.environ['HOME']+'/.gnupg') | |
gpg.encoding = 'utf-8' | |
#encrypted_mnemonic = str(gpg.encrypt(mnemonic,"brian@vanbex.com")) | |
encrypted_mnemonic = str(gpg.encrypt(mnemonic,"2E3CDE84")) | |
print ("") | |
print (address) | |
print (mnemonic) | |
print (encrypted_mnemonic) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment