Clément 'birdy' Danjou
0f6dd3bb06
feat: add rotl and rotr
2024-04-04 15:27:07 +02:00
Clément 'birdy' Danjou
756e4e6dae
refactor: remove deprecated optReq
2024-03-08 03:34:30 +01:00
Clément 'birdy' Danjou
b511101b1b
feat: add 4bits
2024-02-28 14:03:52 +01:00
Clément 'birdy' Danjou
dc18f050e0
feat: add 64bits support
2024-02-09 10:04:55 +01:00
Joseph-André Turk
bc6649def1
made shl and shr more consistent with cleartext shift operators by restraining second operand to 8 bits
...
reset signers.ts
made shl and shr more consistent with cleartext shift operators by restraining second operand to 8 bits
2023-12-21 10:36:21 +01:00
David
dca8d0679b
Add conditional network1 tests
2023-10-25 16:41:46 +08:00
David
bd581422e5
Add network1 development support
2023-10-24 10:56:15 +08:00
youben11
d35e512aa0
feat(lib): add support for the remainder operation
2023-10-10 14:58:18 +01:00
David
3d133c6951
Implement operator overloading
...
following operators are supported:
+, - (unary and binary), *, &, |, ^, ~ (unary)
2023-09-21 10:16:47 +03:00
David
f9a7ee72bf
Use fheLib precompile for all internal functions
2023-09-19 14:29:01 +03:00
Petar Ivanov
323b991765
Add support for the FHE rand precompile
...
At the moment, the underlying implementation is using a plaintext
PRNG. Because of that, we put a warning for users to be aware of.
Support generation of 8, 16 and 32-bit unsigned integers. Users call it
by `TFHE.randEuint32()` and so on for other types. Can only be called in
transactions - calling it in view functions will fail.
Add tests.
Finally, update the `fhevmjs` dependency to `~0.2.0`.
2023-09-07 15:18:52 +02:00
Louis Tremblay Thibault
7079aa15ad
Remove TFHE.req ( #121 )
...
* fix(lib): remove requires
* fix(contracts): remove use of `TFHE.req`
2023-09-06 16:19:10 +02:00
David
9884ed36bb
Address Petar's comments
2023-09-01 08:19:17 +03:00
David
d5d8c6221d
Add binary operator tests in solidity
...
Operator changes:
- remove scalar div operator where scalar is left
- perform trivial encryption in scalar for sub/shl/shr operators
2023-08-31 09:57:45 +03:00
David
a7457ac73f
Remove codegen sorting code
2023-08-28 11:51:43 +03:00
David
880278284e
Finish codegen rewrite
...
- TFHE.sol regenerated
- codegen.py deleted
- original order kept
2023-08-28 10:09:33 +03:00
David
13c41043f3
Rewrite codegen first stab
2023-08-24 11:34:50 +03:00