Replies: 1 comment 1 reply
-
That's not something that is readily available out-of-the-box; but Aiken provides various tools to implement something like Merkleized validators:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently working in my spare time on hydra-chess, which is an experiment on using Cardano to run strategy games. I initially thought of using Hydra L2 because it allowed me to inflate execution budget which is needed to verify the validity of a play in the game1, but this solution is somewhat unsatisfactory.
I am now thinking of a solution whereby players would exchange pre-signed transactions that could be posted on L1 but only if there's a contestation or one player becomes unresponsive. This still leaves the problem of ensuring a play is valid open, and that's how I came to think that a possible solution would be to split the computation across a chain of transactions, with the contract code being "suspended"/"resumed" until it reaches the desired end state. This is similar to how Marlowe works.
In general, have a way to split complex computations across transactions seems a useful pattern. Is this something Aiken devs thought about?
Footnotes
Side note: there could be ways to optimise the validation in such a way that it would fit under existing constraints in the particular case of Chess game which has relatively simple rules, but that's not the point as I ambition to put more games on-chain whose rules are far more complicated than Chess's, eg. [Diplomacy](https://en.wikipedia.org/wiki/Diplomacy_(game) ↩
Beta Was this translation helpful? Give feedback.
All reactions