You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: docs/DEVICE_AUTHENTICATION.md
+24-20Lines changed: 24 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,68 +2,72 @@
2
2
3
3
## Overview
4
4
5
-
All `/v2/devices/*` endpoints require authentication via Ed25519 request signing. The server supports two authentication methods: **Gem** (recommended) and **individual headers** (legacy).
5
+
All `/v2/devices/*` endpoints require Ed25519 request signing. New clients should use the Gem`Authorization` header. Individual `x-device-*` headers remain supported for existing clients and should be treated as legacy compatibility.
Copy file name to clipboardExpand all lines: docs/WALLET_AUTHENTICATION.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,13 @@ Wallet authentication endpoints require proof of wallet ownership via blockchain
29
29
}
30
30
```
31
31
32
-
**Required Headers:**
32
+
Wallet-authenticated requests are still device-authenticated requests. Use the Gem `Authorization` header for device authentication where possible; existing clients may still use the legacy individual headers documented in [Device Authentication](DEVICE_AUTHENTICATION.md).
33
+
34
+
For the current `WalletSigned<T>` guard, include:
33
35
-`x-device-body-hash`: SHA256 hash of request body (hex)
34
36
37
+
This binds the wallet-signed JSON body to the request body read by the guard. Moving this check fully into the Gem `Authorization` payload should be done with the legacy-removal PR.
38
+
35
39
## Nonce Request
36
40
37
41
**Endpoint:**
@@ -72,6 +76,7 @@ GET /v2/devices/auth/nonce
72
76
```
73
77
POST https://api.gemwallet.com/v2/devices/rewards/referrals/create
0 commit comments