arturoleon / warp-wallet-python

Implementation of WarpWallet in python.
MIT License
6 stars 5 forks source link

No return when i launch script #3

Closed beuzathor closed 7 years ago

beuzathor commented 7 years ago

I tried this git but i have no return when i launch my bashscript. I make a file for test with this inside

!/usr/bin/env python

from warpWallet import generate_keypair; generate_keypair("456789456", salt="123456")

But when i launch it with python myfyle.py system return nothing. An idea for that problem ?

arturoleon commented 7 years ago

Generate pair returns a string with hexadecimal representation of the private key. You can use the following example to display the wallet address and key:

from warpWallet import generate_keypair
from keyUtils import keyToAddr,privateKeyToWif
privateKey = generate_keypair("456789456", salt="123456")
print("WIF: {}, Private key: {}").format(privateKeyToWif(privateKey), keyToAddr(privateKey))