o1-labs / o1js

TypeScript framework for zk-SNARKs and zkApps
https://docs.minaprotocol.com/en/zkapps/how-to-write-a-zkapp
Apache License 2.0
514 stars 116 forks source link

Simplify circuit value declaration in places which don't rely on decorator metadata #305

Open mitschabaude opened 2 years ago

mitschabaude commented 1 year ago

should be supported in ZkProgram

mitschabaude commented 2 weeks ago

definitely should enable that, I went for that kind of API in mina-attestations, where say you can define the public input in a zk program to be { x: Field, b: Bool } without worrying about wrapping that in Struct