# -*- coding: utf8 -*-
from bitcoin import *
print ('===================================================')
seed = random_electrum_seed()
bip32Master = bip32_master_key(seed)
print ('Master: ' + bip32Master)
print ('===================================================')
bip32Child1 = bip32_ckd(bip32Master,1)
print ('Child1: ' + bip32Child1)
priv1 = bip32_extract_key(bip32Child1)
print ('Priv1: ' + priv1)
pub1 = privtopub(priv1)
print ('Pub1: ' + pub1)
addr1 = pubtoaddr(pub1)
print ('Addr1: ' + addr1)
wif1 = encode_privkey(priv1, 'wif')
print ('Wif1: ' + wif1)
print ('===================================================')
bip32Child2 = bip32_ckd(bip32Master,2)
print ('Child2: ' + bip32Child2)
priv2 = bip32_extract_key(bip32Child2)
print ('Priv2: ' + priv2)
pub2 = privtopub(priv2)
print ('Pub2: ' + pub2)
addr2 = pubtoaddr(pub2)
print ('Addr2: ' + addr2)
wif2 = encode_privkey(priv2, 'wif')
print ('Wif2: ' + wif2)
print ('===================================================')
Saludos