Skip to content

Commit

Permalink
im an idiot
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Oct 11, 2023
1 parent ae90af5 commit 9813024
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tooling/noir_js/src/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import initAbi, { abiDecode, InputMap, InputValue } from '@noir-lang/noirc_abi';
import initACVM from '@noir-lang/acvm_js';
import { witnessMapToUint8Array } from './serialize.js';

export class Noir implements Noir {
export class Noir {
constructor(
private circuit: CompiledCircuit,
private backend?: Backend,
Expand Down
3 changes: 2 additions & 1 deletion tooling/noir_js_backend_barretenberg/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { acirToUint8Array } from './serialize.js';
import { Backend, BackendOptions, CompiledCircuit, ProofData } from '@noir-lang/types';
import { Backend, CompiledCircuit, ProofData } from '@noir-lang/types';
import { BackendOptions } from './types.js';

// This is the number of bytes in a UltraPlonk proof
// minus the public inputs.
Expand Down
3 changes: 3 additions & 0 deletions tooling/noir_js_backend_barretenberg/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export type BackendOptions = {
threads: number;
};
4 changes: 0 additions & 4 deletions tooling/noir_js_types/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ export interface Backend {
destroy(): Promise<void>;
}

export type BackendOptions = {
threads: number;
};

export type ProofData = {
publicInputs: Uint8Array[];
proof: Uint8Array;
Expand Down

0 comments on commit 9813024

Please sign in to comment.