CTxId

class blsct.CTxId(obj: Any = None)

Represents the transaction ID of a CMutableTransaction

>>> from blsct import CTxId, CTX_ID_SIZE
>>> import secrets
>>> hex = secrets.token_hex(CTX_ID_SIZE)
>>> ctx_id = CTxId.deserialize(hex)
>>> ctx_id.serialize()
'ec7b726c443d3ebb7fb8704fe039a6df993a8a4552ab88c3463627ccd947f334'
>>> ctx_id.serialize() == hex
True
classmethod deserialize(hex: str) → Self

Create a TxId from a hexadecimal string.

serialize() → str

Serialize the CTxId object to a hexadecimal string.