o1js icon indicating copy to clipboard operation
o1js copied to clipboard

Enable private outputs for zkProgram

Open garwalsh opened this issue 7 months ago • 0 comments

Currently zkProgram takes public and private input and returns public output. It does not currently support private output, a result of executing a proof that is not part of the proof statement itself.

This QoL update would enable private outputs such that zkProgram becomes more flexible and more accurately models how a developer would naturally expect such an API to function.

Example use case: a payment app that works via a claim box. The private output is the link to claim the payment that you only want the zkApp to share with the recipient

garwalsh avatar Jul 02 '24 22:07 garwalsh