Overview
Session keys enable delegated signing without exposing the main wallet. They are disposable keys with constrained permissions for specific actions.Creating Session Keys
fromSecp256k1()
Create a session key from a secp256k1 private key.
Permissions
Default FWSS Permissions
Check Permissions
Registration and Lifecycle
login()
Register a session key on-chain.
loginSync()
Register and wait for confirmation.
revoke()
Revoke a session key.
revokeSync()
Revoke and wait for confirmation.
Connection Management
connect()
Connect to watch authorization updates.
disconnect()
Stop watching for updates.
Events
Using with Synapse
Security Best Practices
- Use Unique Keys: Generate fresh session keys per application/device
- Revoke When Done: Always revoke session keys when no longer needed
- Monitor Permissions: Check permissions before operations
- Rotate Regularly: Create new session keys periodically
- Secure Storage: Store session key separately from root key
Complete Workflow
See Also
- SessionKeyRegistry Contract - Contract source
- Synapse - Using session keys with SDK
- Security Guide - Best practices