feat: new flow

This commit is contained in:
_ 2025-03-27 08:59:51 +00:00
parent 78317cd316
commit f8e06297b2
2 changed files with 20 additions and 22 deletions

@ -26,19 +26,22 @@ The architecture looks like this:
```mermaid
architecture-beta
group user(internet)[End User PC]
group dvms(internet)[DVM Server]
group home(logos:aws-s3)[Private Server]
group cloud(cloud)[Public Servers]
service browser(internet)[Electron App] in user
service aw(disk)[Activity Watch] in user
service dvm(logos:aws-ec2)[DVM] in home
service dvm(logos:aws-ec2)[DVM] in dvms
service pow[PoW API] in home
service k(logos:aws-ec2)[Kimai] in home
service db(database)[Database] in home
browser:R -- L:aw
dvm:T -- B:db
dvm:T -- B:k
dvm:T -- B:pow
pow:T -- B:k
pow:T -- B:db
dvm:T -- B:relay
dvm:T -- B:blossom

@ -8,39 +8,34 @@ Kind numbers are all based on a "2029" root, which is the [BIP-39 word for "work
|Kind|Name|Type|Comments|
|---|---|---|---|
|2029000|POST Client|Gift-Wrapped|Register a POW client|
|2029001|Publish Instance|Public, replaceable|Announce POW instance|
|2029|POST Client|Gift-Wrapped|Register a POW client|
## Admin (bootstrap) flow:
## SuperAdmin Signup flow:
```mermaid
sequenceDiagram
autoNumber
participant d as DVM
participant d as POW Server
participant e as Electron App
actor u as Administrator
actor u as SuperAdmin
Note over d: DVM started &<br>npub is written<br>to console
Note over d: DVM initiated <br>with relays &<br>Admin Npubs
Note over d: DVM nProfile<br>logged to console
e->>u: Download App
u->>e: Sign in
Note over e: Client npub <br>created
u->>e: "Add Org"
u->>e: Paste DVM <br>nprofile
u->>e: Sign 000
e->>d: Kind 000
Note over d: Validate admin<br>& update DB<br>with Client info
e->>d: GET INFO Job
u->>e: Paste DVM<br> nProfile
u->>e: Sign 21120 <br> AUTH
e->>d: POST CLIENT
Note over d: Validate event<br>& update DB<br>with Client info
d->>e: Job Response
Note over e: Client registered<br>& DVM validated
Note over e: If org info <br>unpublished:
e->>u: Notify admin
u->>e: Sign 001
Note over e: 001 published
Note over e: Client registered
Note over e: Additional 21120's <br> signed by client
```