Add validateaddress

This commit is contained in:
Jay Graber 2017-07-12 19:45:11 -07:00
parent 9046d44f4d
commit 7b80666cc7
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,9 @@ FEE = 0.001*COIN
zcashd = zcash.rpc.Proxy() zcashd = zcash.rpc.Proxy()
def validateaddress(addr):
return bitcoind.validateaddress(addr)
def parse_secret(txid): def parse_secret(txid):
decoded = bitcoind.getrawtransaction(lx(txid), 1) decoded = bitcoind.getrawtransaction(lx(txid), 1)
print("Decoded", decoded) print("Decoded", decoded)

View File

@ -23,6 +23,8 @@ SelectParams('regtest')
zcashd = zcash.rpc.Proxy() zcashd = zcash.rpc.Proxy()
FEE = 0.001*COIN FEE = 0.001*COIN
def validateaddress(addr):
return zcashd.validateaddress(addr)
def get_keys(funder_address, redeemer_address): def get_keys(funder_address, redeemer_address):
fundpubkey = CBitcoinAddress(funder_address) fundpubkey = CBitcoinAddress(funder_address)