From 4119c925187df2dc07f721a20f55d6667341f5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro=20Sousa?= Date: Mon, 16 Dec 2024 17:27:34 +0000 Subject: [PATCH] fix: casting vk to rawbuffer before wasm so it reads from the correct offset --- barretenberg/ts/src/barretenberg/backend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barretenberg/ts/src/barretenberg/backend.ts b/barretenberg/ts/src/barretenberg/backend.ts index df541aa7de3..546b6738f6b 100644 --- a/barretenberg/ts/src/barretenberg/backend.ts +++ b/barretenberg/ts/src/barretenberg/backend.ts @@ -255,7 +255,7 @@ export class UltraHonkBackend { await this.instantiate(); const vkBuf = vk ?? (await this.api.acirWriteVkUltraHonk(this.acirUncompressedBytecode, this.circuitOptions.recursive)); - return await this.api.acirHonkSolidityVerifier(this.acirUncompressedBytecode, vkBuf); + return await this.api.acirHonkSolidityVerifier(this.acirUncompressedBytecode, new RawBuffer(vkBuf)); } // TODO(https://github.com/noir-lang/noir/issues/5661): Update this to handle Honk recursive aggregation in the browser once it is ready in the backend itself