From 770ebad9c2af2cd280b39207404169f46fd14743 Mon Sep 17 00:00:00 2001 From: jatZama Date: Sat, 14 Dec 2024 16:16:21 +0100 Subject: [PATCH 1/2] feat: add allowTransient for ebytes64 and ebytes128 --- codegen/templates.ts | 8 ++++++++ lib/TFHE.sol | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/codegen/templates.ts b/codegen/templates.ts index c1e82f06..44245e5f 100644 --- a/codegen/templates.ts +++ b/codegen/templates.ts @@ -877,6 +877,14 @@ function tfheAclMethods(supportedBits: number[]): string { Impl.allowTransient(eaddress.unwrap(value), account); } + function allowTransient(ebytes64 value, address account) internal { + Impl.allowTransient(ebytes64.unwrap(value), account); + } + + function allowTransient(ebytes128 value, address account) internal { + Impl.allowTransient(ebytes128.unwrap(value), account); + } + function allowTransient(ebytes256 value, address account) internal { Impl.allowTransient(ebytes256.unwrap(value), account); } diff --git a/lib/TFHE.sol b/lib/TFHE.sol index b8303680..ac1b9f6f 100644 --- a/lib/TFHE.sol +++ b/lib/TFHE.sol @@ -11033,6 +11033,14 @@ library TFHE { Impl.allowTransient(eaddress.unwrap(value), account); } + function allowTransient(ebytes64 value, address account) internal { + Impl.allowTransient(ebytes64.unwrap(value), account); + } + + function allowTransient(ebytes128 value, address account) internal { + Impl.allowTransient(ebytes128.unwrap(value), account); + } + function allowTransient(ebytes256 value, address account) internal { Impl.allowTransient(ebytes256.unwrap(value), account); } From 7a312e8218deb15699736d8b9ff36a49e3cbb47a Mon Sep 17 00:00:00 2001 From: jatZama Date: Sat, 14 Dec 2024 16:16:48 +0100 Subject: [PATCH 2/2] 0.6.2 --- 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 3834411f..345ac8c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fhevm", - "version": "0.6.1", + "version": "0.6.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "fhevm", - "version": "0.6.1", + "version": "0.6.2", "license": "BSD-3-Clause-Clear", "dependencies": { "@openzeppelin/contracts": "^5.0.1", diff --git a/package.json b/package.json index fd21085f..2c8bd428 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fhevm", "description": "A Solidity library for interacting with the Zama Blockchain", - "version": "0.6.1", + "version": "0.6.2", "engines": { "node": ">=20.0.0" },