I’ve created an implementation of ECDSA verification in SimplicityHL. The main purpose was to verify oracles that use this signature scheme instead of the bip0340 style that Simplicity supports via jets. In future, maybe an ecdsa_verify jet can be created.
@apoelstra just happened to mention that there was an ECDSA verifier written in low-level Simplicity as a demo some years ago, before SimplicityHL even existed! Is that still available somewhere? It’s probably not actually directly relevant here, as a SimplicityHL implementation is presumably what we’re going to want in the standard library, not least so that end users can read it!
One of our colleagues did propose at some point that we could have a way to invoke low-level Simplicity code from within SimplicityHL, which might be a little like inline assembly in C (some compilers’ asm() statement) or other high-level languages. So I guess we could choose to put optimized low-level Simplicity implementations of comparatively computationally-intensive functions into the stdlib, if the compiler came to support some notation for this. I’m not sure if this is a good tradeoff.