Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
UTXO transition system with witnessing
Synopsis
- data UTXOW
- data UtxowPredicateFailure
- authTxin ∷ VKey → TxIn → UTxO → Bool
- witnessed ∷ Tx → UTxO → Bool
- traceAddrs ∷ [Addr]
- coverUtxoFailure ∷ ∀ m a. (MonadTest m, HasCallStack, Data a) ⇒ CoverPercentage → a → m ()
Documentation
Instances
data UtxowPredicateFailure Source #
These PredicateFailure
s are all throwable.
Instances
authTxin ∷ VKey → TxIn → UTxO → Bool Source #
Determine if a UTxO input is authorized by a given key.
witnessed ∷ Tx → UTxO → Bool Source #
Given a ledger state, determine if the UTxO witnesses in a given transaction are sufficient. TODO - should we only check for one witness for each unique input address?
traceAddrs ∷ [Addr] Source #
Constant list of addresses intended to be used in the generators.
∷ ∀ m a. (MonadTest m, HasCallStack, Data a) | |
⇒ CoverPercentage | Minimum percentage that each failure must occur. |
→ a | Structure containing the failures |
→ m () |
Check that all the relevant predicate failures are covered.