Commit Graph

25 Commits

Author SHA1 Message Date
Manoranjith
3ec8bfcfef chore: remove console log added for debug 2024-12-10 15:57:55 +01:00
Joseph-André Turk
552fa63293 feat: refactor importing fhevm-core-contracts 2024-10-25 18:15:28 +02:00
Joseph-André Turk
45e860d577 feat: updated TFHEExecutor to support new types
chore: eq-neq  bool support and bitwise scalar support

chore: overloads for fheEq and fheNe

fix: reverts onchain when rhs is 0 in fheDiv-fheRem

feat: added support for scalar and,or,xor

chore: cleanup codegen

feat: adds euint128 and euint256 types

chore: removes ebool fheRandBounded and adds manual tests

feat: adds new types for fheRand

feat: adds trivialEncrypt for ebytesXXX

feat: adds fheEq fheNe ifThenElse for new types

chore: rename asyncDecrypt() to initGateway()
2024-10-18 02:33:10 +02:00
Joseph-André Turk
f76de69a4f chore: updates fhevmjs and fhevmjsMocked to v0.6
chore: small refactor
2024-10-10 10:43:56 +02:00
Joseph-André Turk
fa5cb0edaf feat: set protocol addresses in dApp storage
chore: removed useless import
2024-09-10 15:01:43 +02:00
Joseph-André Turk
a301e25c7c feat: mocked async decrypt w snapshots 2024-08-07 13:50:18 +02:00
Joseph-André Turk
56dbfe0681 feat: new mocked mode 2024-08-07 00:46:38 +02:00
Joseph-André Turk
241f020ed0 chore: fixed CI and removed useless args in createInstance 2024-06-29 15:31:39 +02:00
Joseph-André Turk
41d3a9be47 fix: reencrypt 2024-06-29 15:09:06 +02:00
Petar Ivanov
d1d41843c1 feat: add support for list-based inputs
More info: https://github.com/zama-ai/fhevm-go/pull/120

API changes will be described in the documentation.

More tests and examples are to be done in a future commit.
2024-06-18 12:45:12 +03:00
Petar Ivanov
7c19b2b426 feat: introduce the ACL and TFHEExecutor contracts
Purpose of this commit is to establish a baseline for a working fhEVM
using the ACL and TFHEExecutor contracts. More tests and a rewrite of
examples will come in a future commit.

The ACL contract manages ciphertext permissions, removing the need for
privileged storage and memory in fhEVM.

The TFHEExecutor contract checks ciphertext permissions in the ACL
contract. Only TFHEExecutor is allowed to call FHE precompiles in the
fhEVM.

Not all tests are passing at that point. Only the Rand and the
EncryptedERC20 ones work.

Tests don't use the KMS for decryption. Instead, we load the secret FHE
key and pass it to fhevmjs for decryption.

Update to fhevmjs 0.5.0-1 and tfhe-rs 0.6.1
2024-06-12 11:30:52 +03:00
Levent DEMIR
8d493d327f chore: prettier 2024-04-08 16:55:36 +02:00
Levent DEMIR
592008b93d chore: fix mock fails 2024-04-08 11:34:36 +02:00
Clément 'birdy' Danjou
7924629447 chore: update fhevmjs 2024-03-08 03:20:06 +01:00
Joseph-André Turk
c95296d2b6 fix: updated mocked mode to be compatible with new types 2024-03-05 16:31:16 +01:00
Clément 'birdy' Danjou
ecb915096a fix: mock param conversion was not working correctly due to conversion to Uint8Array 2024-02-09 16:18:35 +01:00
Clément 'birdy' Danjou
249eb0ea2c fix: use encrypt64 for tests instead 32 2024-02-09 10:41:23 +01:00
Clément 'birdy' Danjou
dc18f050e0 feat: add 64bits support 2024-02-09 10:04:55 +01:00
Clément 'birdy' Danjou
4e9f5c8823 deps() update to fhevmjs 0.3.1 2024-01-18 11:12:20 +01:00
Joseph-André Turk
d711a11d23 Mocked version of TFHE.sol for coverage and faster tests
Mocked version of TFHE.sol for faster tests and coverage

renamed lib_mock to mocks and added documentation

prettier
2024-01-02 14:29:19 +01:00
Clément 'birdy' Danjou
6dd601ea68 feat() add feature for government to access balance of their citizen 2023-11-10 14:47:19 +01:00
David
bd581422e5 Add network1 development support 2023-10-24 10:56:15 +08:00
Clément 'birdy' Danjou
0dcf96e0c1 test() add utils to test with signers 2023-08-31 15:41:19 +02:00
Clément 'birdy' Danjou
fedd2f952c chore: update prettier conf and update code style 2023-07-28 16:31:23 +02:00
Clément 'birdy' Danjou
d7ab5c3db2 feat() add hardhat test and template 2023-07-27 17:09:19 +02:00