Session keys within Particle’s AA Modular Stack.
createSessions
and validateSession
(through the RPC endpoint you can access these through createSessions and validateSession). This functionality is only currently compatible with BICONOMY
version
2.0.0, other smart account implementations won’t work and will throw an error.
The underlying flow for implementing and leveraging a session key can be best described through these key steps:
sessionKeyData
, the metadata for the validation contract, including a temporary public address (representing the key), the associated user address, and other parameters (see this repository for an example).sessionValidationModule
, a custom validation contract to determine the validity of a UserOperation, replacing the standard validateUserOp
call make within typical operations.sessionValidationModule
, should look similar to the example provided below, implementing the validateSessionUserOp
method:
Watch the full walkthrough tutorial for leveraging session keys with Particle's AA SDK.