Computation Threads #
Steps:
- Parses the computation state from its datum
StepDatum. - /Optionally/ receives args from its redeemer to /guide/ the computation step.
- Adv the computation by /the step/, producing a new comp state.
- Suspends the comp by serializing the new comp state into a new datum
I drop this, and moved to something simpler.
Datum #
Datum only holds who is computing.
- fraud_prover : VKeyHash
- block_id : Tokens.Elem.TId
- data : α
- name : String
Instances For
Definition of the ComputationState:
- A State
- No state, indicating the end of the computation
- Error state, not so sure about this state. Computation ending is not very concrete yet.
- State {α : Type} : α → ComputationState α
- Empty {α : Type} : ComputationState α
- Error {α : Type} : ComputationState α
Instances For
- datum : StepDatum (ComputationState α)
- steps : List (α → β → ComputationState α)
Instances For
@[reducible, inline]