Author: Mike Hearn 2014-07-10 14:29:12
Published on: 2014-07-10T14:29:12+00:00
A draft BIP for getutxo has been opened up as a protocol extension that performs UTXO lookups given a set of outpoints. The ability to query the unspent transaction output set can be useful for a lightweight/SPV client which does not have the full UTXO set at hand. Two new messages are defined in the specification, "getutxos" and "utxos", with the latter returning the height of the chain at the moment the result was calculated, a block hash of the top of the chain, an array of bytes encoding one bit for each outpoint queried, and a list of result objects (defined below), one for each outpoint that is unspent. Nodes indicate support by advertising a protocol version above 70003 and by setting a new NODE_GETUTXO flag in their nServices field, which has a value of 2 (1). The UTXO set is not currently authenticated by anything, but proposals to resolve this by introducing a new consensus rule that commits to a root hash of the UTXO set in blocks have been made. Future versions of the Bitcoin protocol may also allow the value to be checked.
Updated on: 2023-06-09T00:45:02.259960+00:00