|
|
|
@ -249,7 +249,7 @@ export class CircomPluginClient extends PluginClient { |
|
|
|
|
const witness = this.compiler ? await this.compiler.generate_witness(dataRead, input) : await generate_witness(dataRead, input) |
|
|
|
|
// @ts-ignore
|
|
|
|
|
await this.call('fileManager', 'writeFile', wasmPath.replace('.wasm', '.wtn'), witness, true) |
|
|
|
|
this._paq.push(['trackEvent', 'circuit-compiler', 'computeWitness', 'Witness computing successful']) |
|
|
|
|
this._paq.push(['trackEvent', 'circuit-compiler', 'computeWitness', 'compiler.generate_witness', wasmPath.replace('.wasm', '.wtn')]) |
|
|
|
|
this.internalEvents.emit('circuit_computing_witness_done') |
|
|
|
|
this.emit('statusChanged', { key: 'succeed', title: 'witness computed successfully', type: 'success' }) |
|
|
|
|
return witness |
|
|
|
|