Hierarchy (view full)

Properties

createSessionData: ((leavesData: CreateSessionDataParams[]) => Promise<CreateSessionDataResponse>)

Method to create session data for any module. The session data is used to create a leaf in the merkle tree

Type declaration

entryPointAddress: `0x${string}`
merkleTree: MerkleTree
mockEcdsaSessionKeySig: `0x${string}`
moduleAddress: `0x${string}`
sessionStorageClient: ISessionStorage
version: "V1_0_0"

Methods

  • Returns Promise<void>

    This method is used to clear all the pending sessions

  • Returns `0x${string}`

    SessionKeyManagerModule address

  • Parameters

    Returns Promise<`0x${string}`>

    Dummy signature

    This is the dummy signature for the module, used in buildUserOp for bundler estimation

  • Returns Promise<`0x${string}`>

    Other modules may need additional attributes to build init data

  • Revokes specified sessions by generating a new Merkle root and updating the session statuses to "REVOKED".

    This method performs the following steps:

    1. Calls revokeSessions on the session storage client to get new leaf nodes for the sessions to be revoked.
    2. Constructs new leaf data from the session details, including validity periods and session validation module.
    3. Hashes the leaf data using keccak256 and adds them to the Merkle tree.
    4. Creates a new Merkle tree with the updated leaves and updates the internal Merkle tree reference.
    5. Sets the new Merkle root in the session storage.
    6. Updates the status of each specified session to "REVOKED" in the session storage.

    Parameters

    • sessionIDs: string[]

      An array of session IDs to be revoked.

    Returns Promise<string>

    A promise that resolves to the new Merkle root as a hexadecimal string.

  • Parameters

    • entryPointAddress: `0x${string}`

    Returns void

  • Parameters

    • _message: string | Uint8Array

    Returns Promise<string>

    This Module dont have knowledge of signer. So, this method is not implemented

  • This method is used to sign the user operation using the session signer

    Parameters

    Returns Promise<`0x${string}`>

    The signature of the user operation

  • Update the session data pending state to active

    Parameters

    Returns Promise<void>

  • Asynchronously creates and initializes an instance of SessionKeyManagerModule

    Parameters

    Returns Promise<SessionKeyManagerModule>

    A Promise that resolves to an instance of SessionKeyManagerModule