Skip to main content

IProofService interface

Signature:

export interface IProofService 

Methods

MethodDescription
generateAuthV2Inputs(hash, did, circuitId)generates auth inputs
generateProof(proofReq, identifier, opts)Generate proof from given identity and credential for protocol proof request
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, circuitName)Verification of zkp proof for given circuit id
verifyState(circuitId, pubSignals)state verification function