Provers
Last updated
Last updated
GET
https://privacy.provide.services/api/v1/provers
Returns a list of
Prover
instances in the authorized scope
Name | Type | Description |
---|---|---|
POST
https://privacy.provide.services/api/v1/provers
Creates a Prover using the given parameters
GET
https://privacy.provide.services/api/v1/provers/:id
Returns detailed information for a specified
Prover
GET
https://privacy.provide.servies/api/v1/provers/:id/notes/:index
Returns the note store value of the specified
Prover
; the response contains the decrypted note
GET
https://privacy.provide.services/api/v1/provers/:id/nullifiers/:index
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
.
POST
https://privacy.provide.services/api/v1/provers/:id/verify
Verifies a
Proof
using the given
Witness
parameters
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
authorization
string
bearer scoped to an
Application
authorization
string
bearer scoped to an
Application
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
id
string
id of target
Prover
authorization
string
bearer scoped to an
Application
id
string
id of target
prover
index
string
index of the leaf in the merkle tree for the underlying data structure
authorization
string
bearer scoped to an
Application
id
string
id of the prover
index
string
id
string
id of
Prover
requiring proof
authorization
string
bearer scoped to an
Application
witness
object
Public and private inputs used to generate the
Proof
. Payload can be delivered as a JSON object or chunked and streamed.
id
string
id of
Prover
to be verified
authorization
string
bearer scoped to an
Application
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.