Exemplo n.º 1
0
 def get_broadcast_message(self, rawtx):
     """TODO add docstring"""
     tx = deserialize.tx(rawtx)
     result = control.get_broadcast_message(self.testnet, tx)
     result["signature"] = serialize.signature(result["signature"])
     return result
Exemplo n.º 2
0
 def get_broadcast_message(self, rawtx):
     """TODO add docstring"""
     tx = deserialize.tx(rawtx)
     result = control.get_broadcast_message(self.testnet, tx)
     result["signature"] = serialize.signature(result["signature"])
     return result
Exemplo n.º 3
0
 def sign_data(self, wif, hexdata):
     """Signing <hexdata> with <wif> private key."""
     data = deserialize.binary(hexdata)
     key = deserialize.key(self.testnet, wif)
     sigdata = control.sign_data(self.testnet, data, key)
     return serialize.signature(sigdata)
Exemplo n.º 4
0
 def sign_data(self, wif, hexdata):
     """Signing <hexdata> with <wif> private key."""
     data = deserialize.binary(hexdata)
     key = deserialize.key(self.testnet, wif)
     sigdata = control.sign_data(self.testnet, data, key)
     return serialize.signature(sigdata)