Properties
Static
serverAddr
serverAddr: string
Static
witnessCalculator
witnessCalculator: any
Methods
Static
fetchRemoteFile
- fetchRemoteFile(url: string): Promise<any>
-
Returns Promise<any>
Static
init
- init(): Promise<void>
-
Returns Promise<void>
Static
loadAndModifyWitnessCalculator
- loadAndModifyWitnessCalculator(url: string): Promise<unknown>
-
Returns Promise<unknown>
Static
serialize
- serialize(proofAndPublicSignals: any): string
-
Parameters
-
proofAndPublicSignals: any
Returns string
Static
updateState
- updateState(circuitPath: string, input: any): Promise<{
proof: any;
publicSignals: any;
}>
-
Parameters
-
circuitPath: string
-
input: any
Returns Promise<{
proof: any;
publicSignals: any;
}>
Static
updateStateForBackend
- updateStateForBackend(circuitPath: string, input: any): Promise<{
proof: any;
publicSignals: any;
}>
-
Parameters
-
circuitPath: string
-
input: any
Returns Promise<{
proof: any;
publicSignals: any;
}>
Static
updateStateForClient
- updateStateForClient(input: any): Promise<{
proof: any;
publicSignals: any;
}>
-
Returns Promise<{
proof: any;
publicSignals: any;
}>
Static
verifyState
- verifyState(circuitPath: string, proofAndPublicSignals: any): Promise<any>
-
Parameters
-
circuitPath: string
-
proofAndPublicSignals: any
Returns Promise<any>
Static
verifyStateForBackend
- verifyStateForBackend(circuitPath: string, proofAndPublicSignals: any): Promise<any>
-
Parameters
-
circuitPath: string
-
proofAndPublicSignals: any
Returns Promise<any>
Static
verifyStateForClient
- verifyStateForClient(proofAndPublicSignals: any): Promise<any>
-
Parameters
-
proofAndPublicSignals: any
Returns Promise<any>
Static
verifyWithdrawalForBackend
- verifyWithdrawalForBackend(circuitPath: string, proofAndPublicSignals: any): Promise<any>
-
Parameters
-
circuitPath: string
-
proofAndPublicSignals: any
Returns Promise<any>
Static
verifyWithdrawalForClient
- verifyWithdrawalForClient(proofAndPublicSignals: any): Promise<any>
-
Parameters
-
proofAndPublicSignals: any
Returns Promise<any>
Static
verifyWithrawal
- verifyWithrawal(circuitPath: string, proofAndPublicSignals: any): Promise<any>
-
Parameters
-
circuitPath: string
-
proofAndPublicSignals: any
Returns Promise<any>
Static
withdraw
- withdraw(circuitPath: string, input: any): Promise<{
proof: any;
publicSignals: any;
}>
-
Parameters
-
circuitPath: string
-
input: any
Returns Promise<{
proof: any;
publicSignals: any;
}>
Static
withdrawForBackend
- withdrawForBackend(circuitPath: string, input: any): Promise<{
proof: any;
publicSignals: any;
}>
-
Parameters
-
circuitPath: string
-
input: any
Returns Promise<{
proof: any;
publicSignals: any;
}>
Static
withdrawForClient
- withdrawForClient(input: any): Promise<{
proof: any;
publicSignals: any;
}>
-
Returns Promise<{
proof: any;
publicSignals: any;
}>