tweag / cooked-validators

MIT License
39 stars 11 forks source link

Add the addTokenAttack and the `withTweak` idiom #172

Closed carlhammann closed 1 year ago

carlhammann commented 1 year ago

This PR adds an attack that can add extra tokens to the Mints constraints of a transaction. This is different from the dupTokenAttack, because that attack only increases the amount, but does not introduce new asset classes.

As a bonus, there's now a function withTweak that says "apply this Tweak on this endpoint". It enables idioms like this.