Example #1
0
def find_redeemAddr(contract):
    scriptarray = parse_script(contract['redeemScript'])
    redeemer = scriptarray[6]
    redeemAddr = P2PKHBitcoinAddress.from_bytes(x(redeemer))
    return redeemAddr
Example #2
0
def find_refundAddr(contract):
    scriptarray = parse_script(contract.redeemScript)
    funder = scriptarray[13]
    refundAddr = P2PKHBitcoinAddress.from_bytes(x(funder))
    return refundAddr
Example #3
0
 def find_redeemAddr(self, contract):
     scriptarray = self.parse_script(contract.redeemScript)
     redeemer = scriptarray[6]
     redeemAddr = P2PKHBitcoinAddress.from_bytes(x(redeemer))
     return redeemAddr