@@ -131,11 +131,6 @@ library Impl {
131131 return bytes32 (ITaskManager (TASK_MANAGER_ADDRESS).createTask (returnType, functionId, Common.createUint256Inputs (lhs, rhs), new uint256 [](0 )));
132132 }
133133
134- function decrypt (bytes32 input ) internal returns (bytes32 ) {
135- ITaskManager (TASK_MANAGER_ADDRESS).createDecryptTask (uint256 (input), msg .sender );
136- return bytes32 (input);
137- }
138-
139134 function getDecryptResult (bytes32 input ) internal view returns (uint256 ) {
140135 return ITaskManager (TASK_MANAGER_ADDRESS).getDecryptResult (uint256 (input));
141136 }
@@ -1934,79 +1929,6 @@ library FHE {
19341929 return euint128.wrap (Impl.mathOp (Utils.EUINT128_TFHE, euint128.unwrap (lhs), euint128.unwrap (rhs), FunctionId.ror));
19351930 }
19361931
1937-
1938- /// @notice Performs the async decrypt operation on a ciphertext
1939- /// @dev The decrypted output should be asynchronously handled by the IAsyncFHEReceiver implementation
1940- /// @param input1 the input ciphertext
1941- function decrypt (ebool input1 ) internal {
1942- if (! Common.isInitialized (input1)) {
1943- input1 = asEbool (false );
1944- }
1945-
1946- ebool.wrap (Impl.decrypt (ebool.unwrap (input1)));
1947- }
1948- /// @notice Performs the async decrypt operation on a ciphertext
1949- /// @dev The decrypted output should be asynchronously handled by the IAsyncFHEReceiver implementation
1950- /// @param input1 the input ciphertext
1951- function decrypt (euint8 input1 ) internal {
1952- if (! Common.isInitialized (input1)) {
1953- input1 = asEuint8 (0 );
1954- }
1955-
1956- euint8.wrap (Impl.decrypt (euint8.unwrap (input1)));
1957- }
1958- /// @notice Performs the async decrypt operation on a ciphertext
1959- /// @dev The decrypted output should be asynchronously handled by the IAsyncFHEReceiver implementation
1960- /// @param input1 the input ciphertext
1961- function decrypt (euint16 input1 ) internal {
1962- if (! Common.isInitialized (input1)) {
1963- input1 = asEuint16 (0 );
1964- }
1965-
1966- euint16.wrap (Impl.decrypt (euint16.unwrap (input1)));
1967- }
1968- /// @notice Performs the async decrypt operation on a ciphertext
1969- /// @dev The decrypted output should be asynchronously handled by the IAsyncFHEReceiver implementation
1970- /// @param input1 the input ciphertext
1971- function decrypt (euint32 input1 ) internal {
1972- if (! Common.isInitialized (input1)) {
1973- input1 = asEuint32 (0 );
1974- }
1975-
1976- euint32.wrap (Impl.decrypt (euint32.unwrap (input1)));
1977- }
1978- /// @notice Performs the async decrypt operation on a ciphertext
1979- /// @dev The decrypted output should be asynchronously handled by the IAsyncFHEReceiver implementation
1980- /// @param input1 the input ciphertext
1981- function decrypt (euint64 input1 ) internal {
1982- if (! Common.isInitialized (input1)) {
1983- input1 = asEuint64 (0 );
1984- }
1985-
1986- euint64.wrap (Impl.decrypt (euint64.unwrap (input1)));
1987- }
1988- /// @notice Performs the async decrypt operation on a ciphertext
1989- /// @dev The decrypted output should be asynchronously handled by the IAsyncFHEReceiver implementation
1990- /// @param input1 the input ciphertext
1991- function decrypt (euint128 input1 ) internal {
1992- if (! Common.isInitialized (input1)) {
1993- input1 = asEuint128 (0 );
1994- }
1995-
1996- euint128.wrap (Impl.decrypt (euint128.unwrap (input1)));
1997- }
1998-
1999- /// @notice Performs the async decrypt operation on a ciphertext
2000- /// @dev The decrypted output should be asynchronously handled by the IAsyncFHEReceiver implementation
2001- /// @param input1 the input ciphertext
2002- function decrypt (eaddress input1 ) internal {
2003- if (! Common.isInitialized (input1)) {
2004- input1 = asEaddress (address (0 ));
2005- }
2006-
2007- Impl.decrypt (eaddress.unwrap (input1));
2008- }
2009-
20101932 /// @notice Gets the decrypted value from a previously decrypted ebool ciphertext
20111933 /// @dev This function will revert if the ciphertext is not yet decrypted. Use getDecryptResultSafe for a non-reverting version.
20121934 /// @param input1 The ebool ciphertext to get the decrypted value from
@@ -3584,9 +3506,6 @@ library BindingsEbool {
35843506 function toU128 (ebool value ) internal returns (euint128) {
35853507 return FHE.asEuint128 (value);
35863508 }
3587- function decrypt (ebool value ) internal {
3588- FHE.decrypt (value);
3589- }
35903509 function allow (ebool ctHash , address account ) internal {
35913510 FHE.allow (ctHash, account);
35923511 }
@@ -3826,9 +3745,6 @@ library BindingsEuint8 {
38263745 function toU128 (euint8 value ) internal returns (euint128) {
38273746 return FHE.asEuint128 (value);
38283747 }
3829- function decrypt (euint8 value ) internal {
3830- FHE.decrypt (value);
3831- }
38323748 function allow (euint8 ctHash , address account ) internal {
38333749 FHE.allow (ctHash, account);
38343750 }
@@ -4068,9 +3984,6 @@ library BindingsEuint16 {
40683984 function toU128 (euint16 value ) internal returns (euint128) {
40693985 return FHE.asEuint128 (value);
40703986 }
4071- function decrypt (euint16 value ) internal {
4072- FHE.decrypt (value);
4073- }
40743987 function allow (euint16 ctHash , address account ) internal {
40753988 FHE.allow (ctHash, account);
40763989 }
@@ -4310,9 +4223,6 @@ library BindingsEuint32 {
43104223 function toU128 (euint32 value ) internal returns (euint128) {
43114224 return FHE.asEuint128 (value);
43124225 }
4313- function decrypt (euint32 value ) internal {
4314- FHE.decrypt (value);
4315- }
43164226 function allow (euint32 ctHash , address account ) internal {
43174227 FHE.allow (ctHash, account);
43184228 }
@@ -4534,9 +4444,6 @@ library BindingsEuint64 {
45344444 function toU128 (euint64 value ) internal returns (euint128) {
45354445 return FHE.asEuint128 (value);
45364446 }
4537- function decrypt (euint64 value ) internal {
4538- FHE.decrypt (value);
4539- }
45404447 function allow (euint64 ctHash , address account ) internal {
45414448 FHE.allow (ctHash, account);
45424449 }
@@ -4741,9 +4648,6 @@ library BindingsEuint128 {
47414648 function toU64 (euint128 value ) internal returns (euint64) {
47424649 return FHE.asEuint64 (value);
47434650 }
4744- function decrypt (euint128 value ) internal {
4745- FHE.decrypt (value);
4746- }
47474651 function allow (euint128 ctHash , address account ) internal {
47484652 FHE.allow (ctHash, account);
47494653 }
@@ -4808,9 +4712,6 @@ library BindingsEaddress {
48084712 function toU128 (eaddress value ) internal returns (euint128) {
48094713 return FHE.asEuint128 (value);
48104714 }
4811- function decrypt (eaddress value ) internal {
4812- FHE.decrypt (value);
4813- }
48144715 function allow (eaddress ctHash , address account ) internal {
48154716 FHE.allow (ctHash, account);
48164717 }
0 commit comments