TxKey¶
- class blsct.TxKey(obj: Any = None)¶
Represents a tx key. A tx key is a Scalar and introduces no new functionality; it serves purely as a semantic alias. Both SpendingKey and ViewKey are exclusively derived from a TxKey.
>>> from blsct import TxKey >>> k = TxKey() >>> k.to_spending_key() SpendingKey(63c64ea2d7cb5765fae960e1e1b985709e9d46e8c848086e35e53bfb75038421) >>> k.to_view_key() Scalar(3f8b181966e7ffddc9312f6a57884f367989d7a24c96e9daca651c6b224fde9d)