-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Hybrid Session Key Manager - Batched Execution
- Loading branch information
1 parent
a75fa43
commit 57ceed6
Showing
2 changed files
with
327 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,36 +11,5 @@ import {IStatefulSessionKeyManagerBase} from "./IStatefulSessionKeyManagerBase.s | |
* @author Ankur Dubey - <[email protected]> | ||
*/ | ||
interface ISessionKeyManagerModuleHybrid is IStatefulSessionKeyManagerBase { | ||
/** | ||
* @dev validates that Session Key + parameters are enabled | ||
* by being included into the merkle tree | ||
* @param userOpSender smartAccount for which session key is being validated | ||
* @param validUntil timestamp when the session key expires | ||
* @param validAfter timestamp when the session key becomes valid | ||
* @param sessionKeyIndex index of the session key being used | ||
* @param sessionValidationModule address of the Session Validation Module | ||
* @param sessionKeyData session parameters (limitations/permissions) | ||
* @param sessionEnableSignature eip1271 signature which enables the session key | ||
* @dev if doesn't revert, session key is considered valid | ||
*/ | ||
function validateSessionKeySessionEnableTransaction( | ||
address userOpSender, | ||
uint48 validUntil, | ||
uint48 validAfter, | ||
uint256 sessionKeyIndex, | ||
address sessionValidationModule, | ||
bytes calldata sessionKeyData, | ||
bytes calldata sessionEnableData, | ||
bytes calldata sessionEnableSignature | ||
) external; | ||
|
||
/** | ||
* TODO | ||
* @param smartAccount smartAccount for which session key is being validated | ||
* @param sessionKeyDataDigest digest of the session key data | ||
*/ | ||
function validateSessionKeyPreEnabled( | ||
address smartAccount, | ||
bytes32 sessionKeyDataDigest | ||
) external; | ||
} |
Oops, something went wrong.