OutPoint¶
- class blsct.OutPoint(ctx_id: CTxId)¶
Represents an outpoint of a confidential transaction. Also known as COutPoint on the C++ side.
>>> from blsct import OutPoint, CTxId, CTX_ID_SIZE >>> import secrets >>> ctx_id = CTxId.deserialize(secrets.token_hex(CTX_ID_SIZE)) >>> out_point = OutPoint(ctx_id) >>> out_point OutPoint(ae8f9ba6eaef62fbd4b0215cda24e231...) >>> ser = out_point.serialize() >>> ser == OutPoint.deserialize(ser).serialize() True
- classmethod deserialize(hex: str) Self¶
Deserialize the OutPoint from a hexadecimal string
- serialize() str¶
Serialize the OutPoint to a hexadecimal string