Provers
List Provers
List Provers
GET
https://privacy.provide.services/api/v1/provers
Returns a list of Prover
instances in the authorized scope
Headers
authorization
string
bearer <JWT> scoped to an Application
Create Prover
Create Prover
POST
https://privacy.provide.services/api/v1/provers
Creates a Prover using the given parameters
Headers
authorization
string
bearer <JWT> scoped to an Application
Request Body
curve
string
pairing-friendly elliptic curve
identifier
string
prover identifier; i.e. cubic
name
string
name of Prover
to be created
provider
string
prover provider, i.e., gnark
proving_scheme
string
proving scheme to be used; i.e., groth16
type
string
type of prover
Retrieve Prover Details
Get Prover Details
GET
https://privacy.provide.services/api/v1/provers/:id
Returns detailed information for a specified Prover
Path Parameters
id
string
id of target Prover
Headers
authorization
string
bearer <JWT> scoped to an Application
Retrieve Note Value
Get Note Value
GET
https://privacy.provide.services/api/v1/provers/:id/notes/:index
Returns the note store value of the specified Prover
; the response contains the decrypted note
Path Parameters
id
string
id of target prover
index
string
index of the leaf in the merkle tree for the underlying data structure
Headers
authorization
string
bearer <JWT> scoped to an Application
Retrieve Nullifier Value
Get Nullifier Value
GET
https://privacy.provide.services/api/v1/provers/:id/nullifiers/:index
Path Parameters
id
string
id of the prover
index
string
index of the leaf in the merkle tree for the underlying data structure
Generate Proof
Generate Proof
POST
https://privacy.provide.services/api/v1/provers/:id/prove
Once you have provisioned a prover, this API can be used to generate a proof given valid witness parameters. Calling this API has an implicit side-effect of writing the hash of generated proof to the persistent store associated with the Prover
.
Path Parameters
id
string
id of Prover
requiring proof
Headers
authorization
string
bearer <JWT> scoped to an Application
Request Body
witness
object
Public and private inputs used to generate the Proof
. Payload can be delivered as a JSON object or chunked and streamed.
Verify Proof
Verify Proof
POST
https://privacy.provide.services/api/v1/provers/:id/verify
Verifies a Proof
using the given Witness
parameters
Path Parameters
id
string
id of Prover
to be verified
Headers
authorization
string
bearer <JWT> scoped to an Application
Request Body
proof
string
the hex-formatted proof to verify
store
boolean
when true, the verified note is written to the configured store and the nullified note is written to the nullifier store, if applicable
witness
object
public and private inputs used to generate the Proof
. Payload can be delivered as a JSON object or chunked and streamed.
Last updated