Unaudited Marlowe Validator - mainly optimization focused changes #708
Replies: 6 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Refactoring of state checkingIn the current version of the validator we perform somewhat costly checks of the state - I have few observations and proposals which I would like to discuss:
|
Beta Was this translation helpful? Give feedback.
-
Whitelisting allowed scriptsIn the context of |
Beta Was this translation helpful? Give feedback.
-
Role based withdrawal in Marlowe ValidatorThis actually would impact the validator negatively but it could be nice to measure the impact. When validators checks payouts and a given payout to role is missing we could perform extra checking:
We use datum encoding to simplify the identification of the payout. This change would help to reduce number of transactions in many simple scenarios (like |
Beta Was this translation helpful? Give feedback.
-
Also, we can incorporate IntersectMBO/plutus#5509 and IntersectMBO/plutus#5512 into the production version of the validator. |
Beta Was this translation helpful? Give feedback.
-
Optimization of the payout validatorThe Marlowe Runtime gives us ability to perform withdrawal across multiple contracts so maybe we should try to optimize the payout validator. We can minimize decoding of the |
Beta Was this translation helpful? Give feedback.
-
Let's discuss here all possible changes to the validator which verifiably increase the performance. We should also discuss here possible removal of unnecessary checks which we have in the validator code as well here.
The final result of this discussion could be an extra version of the validator which we can include as a part of the official Runtime which is more flexible and performant but only internally and community audited. Every change/difference in this non audited validator should be clearly motivated and documented.
Guys do you think that we can create accompanying wiki page which we edit as we go?
Beta Was this translation helpful? Give feedback.
All reactions