Wittness#

WitnessHash#

class defichain.transactions.rawtransactions.WitnessHash(tx, input: TxP2WPKHInput | TxP2SHInput)#
static deserialize(network: Any, hex: str) WitnessHash#

Deserializes the given hex into the object that was used to call this method

Parameters:
  • network (Network) – (required) network from defichain.networks

  • hex (str) – (required) the hey that should be deserialized

Returns:

“TxBase” - the object that was used to call the method

verify() bool#

TODO: Verify inputs of witness hash

Witness#

class defichain.transactions.rawtransactions.Witness(signature: str, publicKey: str)#
static deserialize(network: Any, hex: str) Witness#

Deserializes the given hex into the object that was used to call this method

Parameters:
  • network (Network) – (required) network from defichain.networks

  • hex (str) – (required) the hey that should be deserialized

Returns:

“TxBase” - the object that was used to call the method

verify() bool#

TODO: Verify Witness