Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion gateway-contracts/contracts/Decryption.sol
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ contract Decryption is
function isUserDecryptionReady(
CtHandleContractPair[] calldata ctHandleContractPairs,
bytes calldata /* extraData */
) external view virtual returns (bool) {
) public view virtual returns (bool) {
// Return false if the list of handles is empty
if (ctHandleContractPairs.length == 0) {
return false;
Expand All @@ -696,6 +696,18 @@ contract Decryption is
return true;
}

/**
* @dev See {IDecryption-isUserDecryptionReady}.
* @custom:deprecated Use isUserDecryptionReady(CtHandleContractPair[], bytes) instead.
*/
function isUserDecryptionReady(
address /* userAddress */,
CtHandleContractPair[] calldata ctHandleContractPairs,
bytes calldata extraData
) external view virtual returns (bool) {
return isUserDecryptionReady(ctHandleContractPairs, extraData);
}

/**
* @dev See {IDecryption-isDelegatedUserDecryptionReady}.
*/
Expand Down
13 changes: 13 additions & 0 deletions gateway-contracts/contracts/interfaces/IDecryption.sol
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,19 @@ interface IDecryption {
bytes calldata extraData
) external view returns (bool);

/**
* @notice Indicates if handles are ready to be decrypted by a user.
* @param userAddress The user's address (unused, kept for backward compatibility).
* @param ctHandleContractPairs The ciphertext handles with associated contract addresses.
* @param extraData Generic bytes metadata for versioned payloads. First byte is for the version.
* @custom:deprecated Use isUserDecryptionReady(CtHandleContractPair[], bytes) instead.
*/
function isUserDecryptionReady(
address userAddress,
CtHandleContractPair[] calldata ctHandleContractPairs,
bytes calldata extraData
) external view returns (bool);

/**
* @notice Indicates if the handles are ready to be decrypted by the delegate address in delegation accounts.
* @param ctHandleContractPairs The ciphertext handles with associated contract addresses.
Expand Down
356 changes: 320 additions & 36 deletions gateway-contracts/rust_bindings/src/decryption.rs

Large diffs are not rendered by default.

Loading
Loading