UnshieldedUtxoEntity
Room entity for unshielded UTXO storage.
Stores UTXOs (Unspent Transaction Outputs) in local database for balance calculation.
Primary key is composite of transactionHash + outputIndex (unique identifier). Indexed on owner (address) for fast balance queries.
Note: Uses transactionHash for LOCAL primary key. However, the blockchain identifies UTXOs by intentHash + outputNo (used when building transactions).
Properties
Intent hash - used by the BLOCKCHAIN to identify UTXOs. When building transactions for submission, use this (not transactionHash).
Output index in the transaction.
Public key of the owner (hex-encoded compressed key, 33 bytes). Required for spending this UTXO (UtxoSpend.owner expects VerifyingKey). Null if UTXO doesn't belong to our wallet.
Whether this UTXO is registered for dust generation.
Whether this UTXO was marked SPENT by our local transaction.
Transaction hash that created this UTXO. Used for local storage identifier (primary key).