| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cometa.Transaction.Utxo
Description
An unspent-output snapshot pairs a reference with its resolved output. Construction does not query chain state or prove that the output is unspent.
resolved reference output = utxo reference output
Synopsis
- data Utxo
- utxo :: Input -> Output -> Utxo
- input :: Utxo -> Input
- output :: Utxo -> Output
- encodeCbor :: Utxo -> ByteString
- decodeCbor :: ByteString -> Either Error Utxo
Documentation
Owned resolved reference and semantic output. Equality compares both fields.
utxo :: Input -> Output -> Utxo Source #
Assemble a resolved reference and its output without chain-state validation.
output :: Utxo -> Output Source #
Resolved semantic output; inspecting it has no chain or native effects.
encodeCbor :: Utxo -> ByteString Source #
Fresh native UTxO pair [input, output]. This is a snapshot interchange
encoding, not an on-chain transaction-body field.
decodeCbor :: ByteString -> Either Error Utxo Source #
Decode a complete definite or indefinite pair through the public input and
output schemas. Malformed data and trailing bytes return structured errors.
This snapshot API inspects semantic outputs; use an enclosing exact transaction
or EncodedOutput when preserving signed-body identity is required.