# ONCE eID workflow ###### tags: `ONCE` ### 1. Regular workflow ```plantuml @startuml start floating note: based on eID service provided data repeat :web service requests id; :request goes into user's wallet through ID-Gatewa?< partition "Jolocom SmartWallet" { :wallet sends eID id back; } :ID-Gateway segregates data from eID service> repeat while (ID-Attribute Schema alligned, encrypted and signed data returned to Web Service) @enduml ``` ## Details two different cases: 1. storing ID Gateway access token in a VC 2. storing eID attributes (name, age, etc) in a VC 2a. storing eID authorization token in a VC referring to point 2 with props provided to requestor by ID-Gateway. ### 2. Enrollment workflow ```plantuml @startuml start partition "Jolocom SmartWallet" { :user starts eID enrollment and NFC scans physical eID card; :enroll request formed and sent to ID gateway; } if (ID gateway forwards request to eID gov service) then (ok) :all required properties returned to SmartWallet; partition "Jolocom SmartWallet" { :SSI identity based on PII gets created and presented for use/ } stop else (error) :error returned to wallet; partition "Jolocom SmartWallet" { :user asked to fix the error< } stop endif @enduml ```