ProofService class
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Proof service is an implementation of IProofService that works with a native groth16 prover
ProofService implements IProofService interface
Signature:
export declare class ProofService implements IProofService
Implements: IProofService
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(_identityWallet, _credentialWallet, _circuitStorage, _stateStorage, opts) | Creates an instance of ProofService. |
Methods
Method | Modifiers | Description |
---|---|---|
generateAuthV2Inputs(hash, did, circuitId) | generates auth inputs | |
generateProof(proofReq, identifier, opts) | Generate proof from given identity and credential for protocol proof request | |
transformQueryValueToBigInts(value, ldType) | ||
transitState(did, oldTreeState, isOldStateGenesis, stateStorage, ethSigner) | transitState is done always to the latest state Generates a state transition proof and publishes state to the blockchain | |
verifyProof(zkp, circuitId) | Verification of zkp proof for given circuit id | |
verifyState(circuitId, pubSignals) |