tweag / cooked-validators

MIT License
39 stars 11 forks source link

Simplify payments using type classes #406

Closed mmontin closed 1 month ago

mmontin commented 1 month ago

We need to simplify payment by factoring the notion of address, pubkeyhash and value. Ideally, we want to be able to write paysPK alice dat 3 where alice is a wallet and 3 represent 3 ada. We would also want to be able to write paysPK myAddr dat myValue without to have to manually cast things. This could be done be introducing relevant type classes and instances, as we did in the past for PubKeyHash.