File: Documentation.md

package info (click to toggle)
golang-github-henrybear327-proton-api-bridge 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 668 kB
  • sloc: makefile: 3
file content (31 lines) | stat: -rw-r--r-- 794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Documentation

Since the Proton API isn't open sourced, this document serves as the team's understanding for future reference.

# Proton Drive API 

## Terminology

### Volume

### Share

### Node

### Link

## Encryption

Encryption, decryption, and signature signing and verification, etc. are all performed by using the go-crypto library.

### Login

Proton uses SRP for logging in the users. After logging in, there is a small time window (several minutes) where users can access certain routes, which is in the `scope` field, e.g. getting user salt.

Since the user and address key rings are encrypted with passphrase tied to salt and user password, we need to cache this information as soon as the first log in happens for future usage.

### User Key

### Address Key

### Node/Link Key