Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Documentation/DATA_FLOWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ After upload, this entry is added to folder metadata:
sequenceDiagram
participant U as User
participant C as Client
participant B as CipherBox Backend
participant B as CipherBox Backend
participant IPFS as IPFS Network

U->>C: Click download on file
Expand Down Expand Up @@ -237,13 +237,13 @@ sequenceDiagram
```mermaid
sequenceDiagram
participant D1 as Device 1
participant B as CipherBox Backend
participant IPFS as IPFS Network
participant B as CipherBox Backend
participant IPFS as IPFS Network
participant D2 as Device 2

Note over D1: User uploads file
D1->>B: POST /ipfs/add + POST /ipns/publish
B->>IPFS: Relay publish
D1->>B: POST /ipfs/add + POST /ipns/publish
B->>IPFS: Relay publish

Note over D2: Background polling (every 30s)
loop Every 30 seconds
Expand Down Expand Up @@ -370,8 +370,8 @@ sequenceDiagram
sequenceDiagram
participant U as User
participant C as Client
participant B as CipherBox Backend
participant IPFS as IPFS Network
participant B as CipherBox Backend
participant IPFS as IPFS Network

U->>C: Create new folder "Documents"

Expand Down Expand Up @@ -413,8 +413,8 @@ sequenceDiagram
sequenceDiagram
participant U as User
participant C as Client
participant B as CipherBox Backend
participant IPFS as IPFS Network
participant B as CipherBox Backend
participant IPFS as IPFS Network

U->>C: Rename "old.pdf" to "new.pdf"

Expand All @@ -438,8 +438,8 @@ sequenceDiagram
```mermaid
sequenceDiagram
participant C as Client
participant B as CipherBox Backend
participant IPFS as IPFS Network
participant B as CipherBox Backend
participant IPFS as IPFS Network

Note over C: Move file.pdf from /Docs to /Docs/Work

Expand Down
12 changes: 6 additions & 6 deletions Documentation/TECHNICAL_ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ This design enables future per-folder sharing (v2+).
```mermaid
sequenceDiagram
participant C as Client
participant B as CipherBox Backend
participant IPFS as IPFS Network
participant B as CipherBox Backend
participant IPFS as IPFS Network

C->>C: Update folder metadata (add/remove child)
C->>C: Encrypt metadata: AES-GCM(metadata, folderKey)
Expand Down Expand Up @@ -472,12 +472,12 @@ async function fetchFileTree(ipnsName: string, folderKey: Uint8Array): Promise<F
```mermaid
sequenceDiagram
participant D1 as Device 1
participant B as CipherBox Backend
participant IPFS as IPFS Network
participant B as CipherBox Backend
participant IPFS as IPFS Network
participant D2 as Device 2

D1->>B: POST /ipfs/add + POST /ipns/publish
B->>IPFS: Relay publish
D1->>B: POST /ipfs/add + POST /ipns/publish
B->>IPFS: Relay publish
loop Every 30s
D2->>B: GET /ipns/resolve
B->>IPFS: Resolve IPNS name
Expand Down