Authentication Architecture
- Retrieve host ID from host via
GET /id
endpoint. - Deterministically derive Ed25519 key pair from seed mixed with host ID.
- Register public key with host via
POST /users
endpoint. (May require payment.) - For other API calls, send public key in
X-DIPLOMATIC-KEY
header and a signature inX-DIPLOMATIC-SIG
header. The data to be signed will vary with the request.
- [ ] Document key pair derivation process.