@startuml actor User participant "User's Device" as Device participant SDK participant "Local Storage" as Storage participant "Lit Nodes" as LitNodes participant "Lit Network Endpoints" as Endpoints User -> Device: Generate session key pair (Ed25519) Device -> SDK: Initiate SDK alt Session key in storage SDK -> Storage: Retrieve `lit-session-key` else Session key not in storage SDK -> Device: Generate new `lit-session-key` Device -> Storage: Cache `lit-session-key` end SDK -> SDK: Create authSig (ERC-5573 message) SDK -> Storage: Retrieve `lit-wallet-sig` alt Wallet sig expired SDK -> User: Prompt re-sign User -> SDK: Re-sign with ERC-5573 message SDK -> Storage: Cache new `lit-wallet-sig` else Wallet sig valid SDK -> SDK: Use cached `lit-wallet-sig` end SDK -> Device: Use session private key to sign message Device -> SDK: Send device-generated signature alt Using PKP SDK -> LitNodes: Lit Nodes perform signing end SDK -> SDK: Create sessionSigs (access token) SDK -> Endpoints: Access features (executeJs, pkpSign) @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
🎉 Discover the future PlantUML Web Editor! 🚀
PNG
SVG
ASCII Art