scroll-tech / ceno

Accelerate Zero-knowledge Virtual Machine by Non-uniform Prover Based on GKR Protocol
Apache License 2.0
66 stars 11 forks source link

Precompile architecture #693

Open naure opened 16 hours ago

naure commented 16 hours ago

Add the capability to support precompiles in the stack. Demonstrate with one precompile.

matthiasgoergens commented 16 hours ago

I suggest to demonstrate with a hash.

We will want to overhaul how the emulator handles ecalls. At the moment it seems to hardcode that every ecall gets to read a fixed number of registers? At least that's what the comments seem to imply.