From adf0cec7c8eaed5813dd9f0ceace287fd8b3c9e2 Mon Sep 17 00:00:00 2001 From: roshan <19766713+rpalakkal@users.noreply.github.com> Date: Thu, 9 May 2024 16:05:13 -0400 Subject: [PATCH] chore: add dochints for groth16 subquery types --- src/codec/v2/encoder.ts | 3 +++ src/codec/v2/types.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/codec/v2/encoder.ts b/src/codec/v2/encoder.ts index 2af9dd7..5a6bea4 100644 --- a/src/codec/v2/encoder.ts +++ b/src/codec/v2/encoder.ts @@ -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); diff --git a/src/codec/v2/types.ts b/src/codec/v2/types.ts index 4adf89f..80341f0 100644 --- a/src/codec/v2/types.ts +++ b/src/codec/v2/types.ts @@ -126,6 +126,7 @@ export interface ECDSASubquery extends Subquery { } export interface Groth16Subquery extends Subquery { + /// An array of bytes32 strings bytes: string[]; }