Skip to content

Commit

Permalink
Rename ProofWithVerifierData to VerifiableComputation
Browse files Browse the repository at this point in the history
  • Loading branch information
LogvinovLeon committed May 28, 2024
1 parent 504683c commit 6b5f9cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ethereum/oracles/src/noir/circuit/baseProver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { Hex } from 'viem';
import path from 'path';
import { VerifierData } from './verifierData.js';

export interface ProofWithVerifierData {
export interface VerifiableComputation {
proofAsFields: Hex[];
verifierData: VerifierData;
}

export class BaseProver {
constructor(public circuit: MonorepoCircuit) {}
public async proveBase(inputs: InputMap): Promise<ProofWithVerifierData> {
public async proveBase(inputs: InputMap): Promise<VerifiableComputation> {
const proofId = randomUUID();
const prover = new NargoProver(this.circuit, proofId);

Expand Down
4 changes: 2 additions & 2 deletions ethereum/oracles/src/noir/circuit/provers/getStorage.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Address, Hex } from 'viem';
import { BaseProver, ProofWithVerifierData } from '../baseProver.js';
import { BaseProver, VerifiableComputation } from '../baseProver.js';
import { encodeAddress, encodeField, encodeHex } from '../../oracles/common/encode.js';

export class GetStorageProver extends BaseProver {
public async prove(chainId: number, blockNumber: bigint, address: Address, key: Hex): Promise<ProofWithVerifierData> {
public async prove(chainId: number, blockNumber: bigint, address: Address, key: Hex): Promise<VerifiableComputation> {
const inputs = {
chain_id: encodeField(chainId),
block_number: encodeField(blockNumber),
Expand Down

0 comments on commit 6b5f9cd

Please sign in to comment.