Exemplo n.º 1
0
 def pubkeys_to_address(self, pubkeys):
     redeem_script = Transaction.multisig_script(sorted(pubkeys), self.m)
     address = hash_160_to_bc_address(hash_160(redeem_script.decode('hex')), 5)
     return address
Exemplo n.º 2
0
 def redeem_script(self, for_change, n):
     pubkeys = self.get_pubkeys(for_change, n)
     return Transaction.multisig_script(sorted(pubkeys), self.m)