ParcnetGPCWrapper
Wraps the Parcnet RPC API to provide a more user-friendly interface.
Constructors
new ParcnetGPCWrapper()
new ParcnetGPCWrapper(
api
,modalEmitter
):ParcnetGPCWrapper
Parameters
• api: ParcnetRPC
• modalEmitter: Emitter
<ModalEvents
>
Returns
Defined in
packages/app-connector/src/api_wrapper.ts:190
Methods
prove()
prove(
args
):Promise
<ProveResult
>
Parameters
• args
• args.circuitIdentifier?: `${string}_${string}`
• args.collectionIds?: string
[]
• args.request: PodspecProofRequest
<NamedPODs
>
Returns
Promise
<ProveResult
>
Defined in
packages/app-connector/src/api_wrapper.ts:195
verify()
verify(
proof
,config
,revealedClaims
):Promise
<boolean
>
Parameters
• proof: Groth16Proof
• config: GPCBoundConfig
• revealedClaims: GPCRevealedClaims
Returns
Promise
<boolean
>
Defined in
packages/app-connector/src/api_wrapper.ts:212
verifyWithProofRequest()
verifyWithProofRequest(
proof
,config
,revealedClaims
,proofRequest
):Promise
<boolean
>
Parameters
• proof: Groth16Proof
• config: GPCBoundConfig
• revealedClaims: GPCRevealedClaims
• proofRequest: PodspecProofRequest
<NamedPODs
>
Returns
Promise
<boolean
>