You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Giraffe offers a "data" layer, allowing users to persist data in a global, publicly readable database.
Giraffe also offers a UTxO Model.
What if a UTxO could embed a pure function? That function is executed when the UTxO is spent. That function's signature would be in the form: (input: Struct) => List[Transaction]. The return type is a list of new transactions that are implicitly broadcast back to the chain to be included in the next block. This enables on-chain state machines, because the executed function could create a new on-chain function in its place.
The actual function would not be embedded in a UTxO. Instead, the function's hash is recorded on the chain, and only once the UTxO is spent does it get revealed.
Some obvious questions:
What language & VM would be used for the function?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Giraffe offers a "data" layer, allowing users to persist data in a global, publicly readable database.
Giraffe also offers a UTxO Model.
What if a UTxO could embed a pure function? That function is executed when the UTxO is spent. That function's signature would be in the form:
(input: Struct) => List[Transaction]
. The return type is a list of new transactions that are implicitly broadcast back to the chain to be included in the next block. This enables on-chain state machines, because the executed function could create a new on-chain function in its place.The actual function would not be embedded in a UTxO. Instead, the function's hash is recorded on the chain, and only once the UTxO is spent does it get revealed.
Some obvious questions:
Beta Was this translation helpful? Give feedback.
All reactions