sapio-lang / sapio

A Bitcoin Programming Language
Mozilla Public License 2.0
244 stars 43 forks source link

Add Emulation for other Covenant Primitives? #251

Open JeremyRubin opened 2 years ago

JeremyRubin commented 2 years ago

If there were specs for other types of covenant gadget (not just the primitive, some application), it'd be possible to have Sapio demonstrate it's use with a signing oracle that exactly replicates the logic. In order for this to work, we'd need:

Requirements:

The emulator spec can be based on https://learn.sapio-lang.org/ch05-01-ctv-emulator.html

ajtowns commented 2 years ago

Couple of introspection ideas I think are interesting:

ProofOfKeags commented 2 years ago

I think this will in general depend on #100 since we will want to consolidate how we do emulation into the SIMP system prior to extending the set of emulators.