Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jan 24, 2024
1 parent b99cf6d commit e6137e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions yarn-project/circuits.js/src/abis/abis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ export function computeCompleteAddress(
);
}


function computePartialAddress(contractAddrSalt: Fr, fnTreeRoot: Fr, constructorHash: Fr) {
return Fr.fromBuffer(
pedersenHash(
Expand Down Expand Up @@ -448,7 +447,6 @@ export function computeTxHash(txRequest: TxRequest): Fr {
);
}


function computeFunctionDataHash(functionData: FunctionData): Fr {
return Fr.fromBuffer(
pedersenHash(
Expand All @@ -463,7 +461,6 @@ function computeFunctionDataHash(functionData: FunctionData): Fr {
);
}


function computeTxContextHash(txContext: TxContext): Fr {
return Fr.fromBuffer(
pedersenHash(
Expand All @@ -480,7 +477,6 @@ function computeTxContextHash(txContext: TxContext): Fr {
);
}


function computeContractDeploymentDataHash(data: ContractDeploymentData): Fr {
return Fr.fromBuffer(
pedersenHash(
Expand All @@ -497,7 +493,6 @@ function computeContractDeploymentDataHash(data: ContractDeploymentData): Fr {
);
}


function computeCallContextHash(input: CallContext) {
return pedersenHash(
[
Expand All @@ -514,7 +509,6 @@ function computeCallContextHash(input: CallContext) {
);
}


function computePrivateInputsHash(input: PrivateCircuitPublicInputs) {
const toHash = [
computeCallContextHash(input.callContext),
Expand Down Expand Up @@ -577,15 +571,13 @@ export function computePrivateCallStackItemHash(callStackItem: PrivateCallStackI
);
}


function computeContractStorageUpdateRequestHash(input: ContractStorageUpdateRequest) {
return pedersenHash(
[input.storageSlot.toBuffer(), input.oldValue.toBuffer(), input.newValue.toBuffer()],
GeneratorIndex.PUBLIC_DATA_UPDATE_REQUEST,
);
}


function computeContractStorageReadsHash(input: ContractStorageRead) {
return pedersenHash([input.storageSlot.toBuffer(), input.currentValue.toBuffer()], GeneratorIndex.PUBLIC_DATA_READ);
}
Expand All @@ -594,15 +586,13 @@ export function computeCommitmentsHash(input: SideEffect) {
return pedersenHash([input.value.toBuffer(), input.counter.toBuffer()], GeneratorIndex.SIDE_EFFECT);
}


export function computeNullifierHash(input: SideEffectLinkedToNoteHash) {
return pedersenHash(
[input.value.toBuffer(), input.noteHash.toBuffer(), input.counter.toBuffer()],
GeneratorIndex.SIDE_EFFECT,
);
}


export function computePublicInputsHash(input: PublicCircuitPublicInputs) {
const toHash = [
computeCallContextHash(input.callContext),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import { LogFn } from '@aztec/foundation/log';
import { Command } from 'commander';
import { dirname } from 'path';


export function addNoirCompilerCommanderActions(program: Command, log: LogFn = () => {}) {
addCodegenCommanderAction(program, log);
}


export function addCodegenCommanderAction(program: Command, _: LogFn = () => {}) {
program
.command('codegen')
Expand Down

0 comments on commit e6137e4

Please sign in to comment.