triton-vm icon indicating copy to clipboard operation
triton-vm copied to clipboard

add command line tool for proof generation & verification

Open jan-ferdinand opened this issue 2 years ago • 3 comments

It would be nice to run Triton VM as a command-line tool; Andrew Milson's demo of ministark is a good example; basically one sub-command for proving and dumping something into a file (or stdout), and another sub-command for verifying by reading that file (or stdin).

(extracted from #164)

jan-ferdinand avatar Nov 17 '23 18:11 jan-ferdinand

may I start working on it?

cyberbono3 avatar Apr 16 '24 14:04 cyberbono3

Sure thing! :slightly_smiling_face:

jan-ferdinand avatar Apr 16 '24 14:04 jan-ferdinand

gentle bump, could use #305 next week

chancehudson avatar Jul 12 '24 23:07 chancehudson

Also would love a command-line interface for running programs and generating proofs. Basically, a CLI that supports the operations implied by this diagram:

Image

erikerlandson avatar Feb 14 '25 21:02 erikerlandson

I made a stand-alone CLI for running and proving Triton programs and verifying those proofs. You can install it directly through cargo install triton-cli.

jan-ferdinand avatar Feb 21 '25 08:02 jan-ferdinand

Basically, a CLI that supports the operations implied by this diagram […]

In order to use the new CLI to complete cycles in this diagram, you need a verifier for Triton VM written in Triton assembly. Lucky for you, you can find one in tasm-lib. :blush: Unfortunately, for now, you need to set things up yourself in order to use it. One project that uses the recursive verifier is Neptune Cash, for example here.

jan-ferdinand avatar Feb 21 '25 08:02 jan-ferdinand