This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
zkvm: remove bulletproofs dependency from API #210
Closed
Description
openedon Mar 9, 2019
Would be good if BulletproofsGens and other entities from BP were encapsulated inside ZkVM or at least re-exported, so that the users can add ZkVM as a dependency w/o also bringing in bulletproofs. See token
crate as an example.
BulletproofsGens
: those can be instantiated by ZkVM with a capacity parameter. R1CS can take them at theProver::prove
method, so ZkVM can just create a necessary capacity based on number of multiplicative constraints used. This can also be a part of theTx
object.PedersenGens
are already baked into Commitment and Predicate API, and we can do the same for Signature/VerificationKey API, so users do not create those things with raw scalar operations. If they need to do something custom and unsupported by ZkVM APIs, then they can import Ristretto or Bulletproofs explicitly.- R1CS instance is already encapsulated inside ZkVM prover/verifier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels