|
|
@ -5,7 +5,7 @@ import { GROTH16_VERIFIER, PLONK_VERIFIER } from './constant' |
|
|
|
import { extractNameFromKey, extractParentFromKey } from '@remix-ui/helper' |
|
|
|
import { extractNameFromKey, extractParentFromKey } from '@remix-ui/helper' |
|
|
|
|
|
|
|
|
|
|
|
export const compileCircuit = async (plugin: CircomPluginClient, appState: AppState) => { |
|
|
|
export const compileCircuit = async (plugin: CircomPluginClient, appState: AppState) => { |
|
|
|
if (appState.status === "compiling") { |
|
|
|
if (appState.status !== "compiling") { |
|
|
|
return console.log('Existing circuit compilation in progress') |
|
|
|
return console.log('Existing circuit compilation in progress') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -23,7 +23,7 @@ export const computeWitness = async ( |
|
|
|
status: string, |
|
|
|
status: string, |
|
|
|
witnessValues: Record<string, string> |
|
|
|
witnessValues: Record<string, string> |
|
|
|
) => { |
|
|
|
) => { |
|
|
|
if (status === "computing") { |
|
|
|
if (status !== "computing") { |
|
|
|
return console.log('Existing witness computation in progress') |
|
|
|
return console.log('Existing witness computation in progress') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|