Clément 'birdy' Danjou
8bf83bfcd0
feat() add isInitialized function
2023-06-26 19:38:00 +02:00
Clément 'birdy' Danjou
63f1a0665a
fix() fix codegen duplicate
2023-06-26 19:29:57 +02:00
Clément 'birdy' Danjou
c167fd0de7
feat() Update name of optReq and req
2023-06-26 18:34:13 +02:00
Louis Tremblay Thibault
f59adff99f
feat(fhe): add missing FHE operators ( #53 )
...
* feat: add casting
* feat(ops): add missing fhe ops
* feat(tfhe): type rules
* fix(tfhe): change `lte` to `le`
2023-06-26 11:29:10 +02:00
Louis Tremblay Thibault
ab09a06c30
feat: add casting ( #50 )
...
* feat: add casting
* fix(style): run prettier
2023-06-22 13:40:27 +02:00
Petar Ivanov
89dbfcce89
Set flag in fhePubKey to signal call from the lib
2023-06-22 13:16:19 +03:00
Louis Tremblay Thibault
85e24c6f99
feat(tfhe): add ciphertext/plaintext operations ( #49 )
...
* feat(precompiles): add trivial encrypt
* fix(trivial): fix precompile address
* feat(tfhe): add ciphertext-plaintext ops
2023-06-21 15:15:06 +02:00
Louis Tremblay Thibault
f30df9b0ec
feat(precompile): add trivial encrypt ( #48 )
...
* feat(precompiles): add trivial encrypt
* fix(trivial): fix precompile address
2023-06-21 15:14:46 +02:00
Petar Ivanov
25488ac4db
Add support for the fhePubKey precompile
...
Expose as the fhePubKey() function in TFHE.sol.
2023-06-19 13:08:32 +03:00
Petar Ivanov
c5a3c9a183
Remove the cast and delegate precompiles
...
Rationale is that cast is not yet supported and delegate is obsolete.
Furthermore, add a few minor style fixes.
2023-06-13 18:50:50 +03:00
Clément 'birdy' Danjou
c962ef89b2
fix() various fix based on review
2023-06-02 18:33:17 +02:00
Clément 'birdy' Danjou
006f20e942
Update contracts with new lib
2023-06-01 17:12:05 +02:00
Louis Tremblay Thibault
8de8f67497
feat(output): support classical re-encryption of ciphertexts ( #32 )
...
Reencrypt values to a classical (non-FHE) public key scheme.
Only reencrypt after verifying an EIP712 signature.
Change the test such that it uses the new reencrypt code.
2023-05-31 10:54:55 +03:00
Louis Tremblay Thibault
f65bfe11d7
fix(types): fix codegen script and typed lib
2023-05-22 11:39:34 +02:00
Louis Tremblay Thibault
a2d6484976
fix(types): fix return types of lt and le
2023-04-24 14:52:23 -04:00
Louis Tremblay Thibault
daa4e0b67b
fix(types): rename to_euint to toEuint
2023-04-24 13:15:45 -04:00
Louis Tremblay Thibault
5788b2dd25
feat(types) typed examples
2023-04-24 11:44:03 -04:00
Louis Tremblay Thibault
0f64cb5fba
fix(codegen) add mul impl
2023-04-20 15:25:13 +02:00
Louis Tremblay Thibault
4e31db4b06
feat(types): add type system architecture
2023-04-20 14:27:37 +02:00
Louis Tremblay Thibault
ee96e54f9e
fix(codegen): use specified syntax
2023-03-31 13:09:44 +02:00
tremblaythibaultl
8192fd7eb3
fix: precompile addresses
2023-03-21 15:32:38 +01:00
tremblaythibaultl
131ad56ee3
feat: v1 code generator
2023-03-21 13:54:14 +01:00