From 1d967308dc345b1da156949bbb67e89e23214b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Thu, 14 Nov 2024 12:58:02 +0100 Subject: [PATCH 1/2] fix: pad handle with 0 --- src/sdk/reencrypt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdk/reencrypt.ts b/src/sdk/reencrypt.ts index 3129c2d..195179b 100644 --- a/src/sdk/reencrypt.ts +++ b/src/sdk/reencrypt.ts @@ -46,7 +46,7 @@ export const reencryptRequest = signature: signature.replace(/^(0x)/, ''), user_address: userAddress.replace(/^(0x)/, ''), enc_key: publicKey.replace(/^(0x)/, ''), - ciphertext_handle: handle.toString(16), + ciphertext_handle: handle.toString(16).padStart(64, '0'), eip712_verifying_contract: contractAddress, }; const options = { From f73591d6e64dd9b7e8173dcbdea5ff3dac19c726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Thu, 14 Nov 2024 12:58:29 +0100 Subject: [PATCH 2/2] 0.5.8 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 974fe99..40498db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fhevmjs", - "version": "0.5.7", + "version": "0.5.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "fhevmjs", - "version": "0.5.7", + "version": "0.5.8", "license": "BSD-3-Clause-Clear", "dependencies": { "@types/keccak": "^3.0.4", diff --git a/package.json b/package.json index 812261a..9424438 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fhevmjs", - "version": "0.5.7", + "version": "0.5.8", "description": "fhEVM SDK for blockchain using TFHE", "main": "lib/node.js", "types": "lib/node/node.d.ts",