Skip to content

Commit

Permalink
chore: add dochints for groth16 subquery types
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalakkal committed May 9, 2024
1 parent c264d92 commit adf0cec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codec/v2/encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ export function encodeECDSASubquery(
);
}

/**
* @param bytes An array of bytes32 strings.
*/
export function encodeGroth16Subquery(bytes: string[]): string {
const types = new Array(AxiomV2CircuitConstant.MaxSubqueryInputs).fill("bytes32");
bytes.forEach(validateBytes32);
Expand Down
1 change: 1 addition & 0 deletions src/codec/v2/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export interface ECDSASubquery extends Subquery {
}

export interface Groth16Subquery extends Subquery {
/// An array of bytes32 strings
bytes: string[];
}

Expand Down

0 comments on commit adf0cec

Please sign in to comment.