zkMIPS / zkm

The universal zkVM empowering Ethereum as the Global Settlement Layer
https://zkm.io
MIT License
92 stars 49 forks source link

Dev mode support #152

Closed eigmax closed 4 days ago

eigmax commented 1 month ago

Refers to the Dev mode in Risc 0, we can separate the program into host mode and guest mode via target.

When we setup target=zkvm, we run it in guest mode, and prove the program. Otherwise, we run it in host mode and just execute it.

eigmax commented 1 month ago

For the DEV mode, we only perform the guest program and split the program into segments by split_prog_into_segs. Then use read_public_values to get the output.

xander42280 commented 1 week ago

You can refer to https://github.com/zkMIPS/zkm-project-template the 'execute_only' inside

eigmax commented 4 days ago

So can we close this issue? @xander42280 @gavin-ygy

gavin-ygy commented 4 days ago

The latest template support it now.