Commit Graph

135 Commits

Author SHA1 Message Date
Clément 'birdy' Danjou
dfbe567fc7 test: add test for array of euint4 2024-05-28 16:59:07 +02:00
Clément 'birdy' Danjou
ebe7e8f9cc test: fix array size 2024-05-27 15:52:05 +02:00
Clément 'birdy' Danjou
a46463c835 test: many fixes 2024-05-27 15:26:24 +02:00
Clément 'birdy' Danjou
eb3962e0d9 test: add tests for eq_array 2024-05-27 13:57:19 +02:00
Joseph-André Turk
6fadf84f5f test: with duplicates 2024-04-24 19:46:05 +02:00
Joseph-André Turk
2b0c10e094 test: multiple ciphertexts and infinite loop 2024-04-24 19:35:10 +02:00
Joseph-André Turk
799430d9dd feat: added infinite loop test 2024-04-24 12:58:55 +02:00
Joseph-André Turk
d8a44b5c58 fix: re-added no-op with unit tests for fake handles 2024-04-12 13:35:38 +02:00
Joseph-André Turk
bd9bb7a643 feat: 1day hardlimit for maxTimestamp and isExpired view func 2024-04-09 17:51:09 +02:00
Levent DEMIR
d98c02f61e chore: run prettier 2024-04-09 14:06:54 +02:00
Joseph-André Turk
4a8c703bdd fix: runned codegen 2024-04-09 13:59:49 +02:00
jat
461a0364e5 Merge branch 'main' into fix/euint160_nooracleservicechange 2024-04-09 13:32:13 +02:00
Joseph-André Turk
8020ac583a fix: eaddress 2024-04-09 11:04:25 +02:00
Levent DEMIR
53edf79780 feat: add select for eaddress 2024-04-05 16:15:17 +02:00
Levent DEMIR
0e2a74866c chore: rename (E)Uint160 to (E)Address 2024-04-05 11:52:46 +02:00
Levent DEMIR
6b055cc241 chore: update asEaddress from value (cast to uint160) 2024-04-05 08:55:34 +02:00
Levent DEMIR
f9ede026c1 chore: rename uint160 to address in async test 2024-04-05 06:18:16 +02:00
Levent DEMIR
e8a70b0b69 chore: add missing part for eaddress 2024-04-05 05:52:24 +02:00
Clément 'birdy' Danjou
0f6dd3bb06 feat: add rotl and rotr 2024-04-04 15:27:07 +02:00
Levent DEMIR
e209353400 chore: add reencrypt 2024-04-03 16:49:06 +02:00
Levent DEMIR
9910e4da0f chore: use decrypt function name for eaddress also 2024-04-03 16:49:06 +02:00
Levent DEMIR
2d336dda3a chore: consistency for naming 2024-04-03 16:49:06 +02:00
Levent DEMIR
5ee434a663 feat(eaddress): add eaddress with (scalar) ne and (scalar) eq 2024-04-03 16:49:03 +02:00
Levent DEMIR
571c0755be feat: add ability to call eaddress decrypt asynchronously 2024-04-02 15:59:12 +02:00
Clément 'birdy' Danjou
fd2308b95e feat: addn randEuint64() 2024-03-28 14:57:20 +01:00
Joseph-André Turk
30fcdfe1b4 fix: fhevm image fixing power of 2 2024-03-27 14:43:15 +01:00
Joseph-André Turk
76c4cfbee4 fix: fixed removeDid 2024-03-25 12:05:59 +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
youben11
33b6290aa5 tests: add euint4 for test contract 2024-03-15 12:30:49 +01:00
Joseph-André Turk
e968f5c23e docs: added docs for async decrypt and support for euint4
fix: recomputed codehash

fix: prettier in ci mode

fix: typos

fix: typo

fix: removed old example and added ResultCallback event

fix: typos
2024-03-13 12:11:05 +01:00
Clément 'birdy' Danjou
faad51a6ea feat: introduce select in place of cmux 2024-03-08 11:31:53 +01:00
Clément 'birdy' Danjou
756e4e6dae refactor: remove deprecated optReq 2024-03-08 03:34:30 +01:00
youben11
bb67b541d0 test: cover the different types of values in decryption 2024-03-05 11:11:45 +01:00
Clément 'birdy' Danjou
9212a32e7c fix: fix typo and add test for cast ebool from euint4 and euint8 2024-03-01 13:53:47 +01:00
Clément 'birdy' Danjou
42de399ce9 feat: add generator for overloads and implement 4bits tests 2024-02-29 12:52:59 +01:00
Clément 'birdy' Danjou
b511101b1b feat: add 4bits 2024-02-28 14:03:52 +01:00
Clément 'birdy' Danjou
31dbeced23 fix: update Lib for new ebool type 2024-02-28 01:37:11 +01:00
Joseph-André Turk
5afe40218f fix: removed gasEstimation test 2024-02-27 16:09:08 +01:00
Joseph-André Turk
696445b52f fix: silence warnings and fix _transfer in CompliantERC20 2024-02-27 16:07:32 +01:00
Joseph-André Turk
f506c4cd20 fix: custom owner address in constructor, moved decryptTest 2024-02-26 19:26:32 +01:00
Joseph-André Turk
00bb216822 feat: added the oracle contracts and library 2024-02-22 12:58:44 +01:00
Clément 'birdy' Danjou
6111441224 feat: add test for cast bool to 64bits 2024-02-09 10:58:23 +01:00
Clément 'birdy' Danjou
dc18f050e0 feat: add 64bits support 2024-02-09 10:04:55 +01:00
Joseph-André Turk
ddb6db7c3f Added virtual modifier for easier extensibility - also deleted useless public modifier in Timelock constructor 2024-01-12 14:06:56 +01:00
Joseph-André Turk
297c5a563f Added name and symbol parameters in constructor of EncryptedERC20 and CompliantERC20 2024-01-11 16:59:24 +01:00
Joseph-André Turk
db547ce395 fixed bugs in CompliantERC20 and ERC20Rules and made CompliantERC20 inherit from EncryptedERC20 for cleaner code 2024-01-10 15:32:13 +01:00
Joseph-André Turk
c45b2030b3 draft of improvements for the EncryptedERC20
synced with main

fixed transferFrom bug and error reporting

transfer test not passing yet

improved EncryptedERC20 features

removed error handling from EncryptedERC20
2024-01-10 12:26:53 +01:00
Petar Ivanov
fe1e97065e feat: add upper bound for encrypted random integers
Add overloads of TFHE.randEuint() methods that accept an upper bound,
e.g. TFHE.randEuint32(uint32 upperBound). The returned integer will be
in the [0, upperBound) range. Moreover, upperBound must be a power of
2 - that is a design choice for performance reasons.

Note that, as of now, the random numbers are generated in the plain and
are completely public and predictable. An FHE version is coming soon.

Add tests to cover above functionality.
2024-01-09 17:17:40 +02:00
Joseph-André Turk
535b055fc8 Updated Solidity version to ^0.8.20 and OpenZeppelin Contracts to ^5.0.1
updated to ethermint node

updated node dev version

removed parallel flag from hardhat test

reput inband test for ci

setup evm version to Paris to avoid PUSH0 error and updated hardhat version

removed utils.ts.new file

synced package.json and package-lock.json

prettier
2024-01-09 11:05:38 +01:00
Joseph-André Turk
ff075c72b2 Added Reencrypt abstract contract to replace use of EIP712WithModifier 2024-01-05 12:21:41 +01:00