36 Commits

Author SHA1 Message Date
Joseph-André Turk
f1642be48f chore: refactored task and added optional verifyContract 2024-10-08 12:49:17 +02:00
Joseph-André Turk
f371bd6ec5 feat: adds upgrade tasks 2024-10-08 12:21:18 +02:00
Joseph-André Turk
eef0666de6 feat: added etherscan verification task
chore: fixed typo
2024-10-07 17:50:05 +02:00
Joseph-André Turk
525d498179 feat: useAddress optional parameters for deployment, gateway deployer is owner 2024-10-07 12:43:32 +02:00
Joseph-André Turk
be852a3b5f chore: removed file copying need for InputVerifier deployment 2024-10-07 11:30:35 +02:00
Joseph-André Turk
0943a0895c feat: use fhevm deployer private key for deployment
chore: cleanup README

feat: add option to pass addresses for kms signers instead of private keys

chore: typo and cleanup in sh script
2024-10-04 16:15:57 +02:00
Joseph-André Turk
a00fc344fe feat: added InputVerifier contract with tests and mock
chore: fixed coverage
2024-09-19 04:32:49 +02:00
Joseph-André Turk
c1a8df6e18 test: added tests for kmsverifier 2024-09-13 16:54:45 +02:00
Joseph-André Turk
4eeb0d22e5 feat: added kms signature in mocked mode
chore: fixed typo
2024-09-13 11:41:40 +02:00
Joseph-André Turk
a2786b4364 feat: made all fhevm contracts UUPS
chore: fixed prettier

fix: typo in address starting with 0

fix: get correct value of counter when doing snapshot
2024-09-12 15:42:48 +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
ce34ad5fd6 feat: fhe-payment v0 2024-08-27 19:35:28 +02:00
Joseph-André Turk
a13cb753e9 feat: symbolic computation of fhe operations handles
chore: fixed typo
2024-08-23 18:22:31 +02:00
Joseph-André Turk
e05f896995 fix: removed useless 5seconds pause in mocked mode 2024-08-22 18:22:19 +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
205f7e9fda fix: kmsverifier, solidity ver and silence transient warning
chore: updated version of package

chore: updated npmignore and deleted abstracts
2024-07-05 18:50:44 +02:00
Petar Ivanov
68ea71ac70 feat: update with latest Solidity implementation
There are a number of tests that are still not rewritten with the new
APIs. The EncryptedERC20 and Rand examples do work.
2024-06-21 08:05:05 +03: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
Levent DEMIR
cb73a82beb fixture: refactoring from oracle to gateway
This PR is rebasing original fhevm repository to include last async
decrypt api.

The old oracle has been refatored to Gateway plus related changes

A fix in ACL. sol has been done.

The async decrypt test is successfully triggering an event.

The missing part to have the full test is the signatures part in
KMSVerifier.sol.

Check setup-local-fhevm.sh script to see the steps needed to have a
working configuration. Deployment is as follows:

1. Deploy ACL + write deployed @ to lib/.env.acl
2. Deploy TFHEExecutor + write deployed @ to lib/.env.exec
3. Deploy KMSVerifier + write deployed @ to lib/.env.kmsverifier
4. Deploy Gateway + write deployed @ to gateway/.env.gateway
2024-06-12 14:26:07 +02: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
Joseph-André Turk
69464f8b29 feat: added mocked oracle and automated predeploy deployment
fix: typo .env.example

fix: ci tests

fix: ci test

fix: removed ciphertext verification in oracle

fix: typo OraclePredeploy

fix: gaslimit

fix: bigger ci machine

fix: bigger ci machine

fix: increased ci sleep time

fix: longer sleep for ci

fix: longer sleep

fix: longer sleep

fix: change sleeping times

fix: simplest test

fix: ci

fix: add compile

ci: show logs/errs of different services

fix: test

fix: typo
2024-03-20 10:41:27 +01:00
Joseph-André Turk
b10c4d0958 feat: added automatic deployment of predeploy when testing
fix: moved oracle repo

fix: typo

fix: added compile subtask

fix: faucet for fhevm
2024-03-15 12:56:54 +01:00
Joseph-André Turk
8666f2ef49 chore: converted ts scripts to tasks 2024-03-13 18:01:29 +01:00
Clément 'birdy' Danjou
9f4cc41739 chore: use task instead of custom script 2024-03-13 17:07:25 +01:00
Joseph-André Turk
40d32daa43 feat: added utils for oracle deployment and updated tasks 2024-03-13 16:04:00 +01:00
Joseph-André Turk
6faf13648d Fixed tasks and readme 2024-01-18 15:17:44 +01:00
Clément 'birdy' Danjou
4e9f5c8823 deps() update to fhevmjs 0.3.1 2024-01-18 11:12:20 +01:00
Clément 'birdy' Danjou
63c0dfc943 chore() Add task to play with identity contract 2023-11-13 16:25:13 +01:00
Clément 'birdy' Danjou
ffc8b4de6a feat() add deploy task 2023-11-13 12:57:06 +01:00
David
3dea37c956 Fix network1 tests waiting for new block 2023-11-02 14:47:23 +08:00
Clément 'birdy' Danjou
531903adc7 test() Add test on vote results 2023-09-07 18:01:45 +02:00
David
13c41043f3 Rewrite codegen first stab 2023-08-24 11:34:50 +03:00
David
4a1a8592c2 Test on local reproducible docker image by default 2023-08-22 11:13:27 +03: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