Skip to content

Get E2EE key bundle

GET
/api/keys/{address}
curl --request GET \
--url http://localhost:3001/api/keys/example \
--header 'Authorization: <Authorization>'

Retrieves end-to-end encryption key bundle from mesh DHT with signature verification

address
required
string

User wallet address

OK

Media typeapplication/json
object
keyBundle
object
address
string
ed25519PublicKey

Base64 encoded Ed25519

string
identityKey

Base64 encoded X25519

string
oneTimePreKeys
Array<object>
object
keyId
integer
publicKey

Base64 encoded

string
registrationId
integer
signedPreKey
object
keyId
integer
publicKey

Base64 encoded

string
signature

Base64 encoded

string
timestamp
integer
message
string
success
boolean
Examplegenerated
{
"keyBundle": {
"address": "example",
"ed25519PublicKey": "example",
"identityKey": "example",
"oneTimePreKeys": [
{
"keyId": 1,
"publicKey": "example"
}
],
"registrationId": 1,
"signedPreKey": {
"keyId": 1,
"publicKey": "example",
"signature": "example",
"timestamp": 1
}
},
"message": "example",
"success": true
}

Unauthorized

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Not Found

Media typeapplication/json
object
keyBundle
object
address
string
ed25519PublicKey

Base64 encoded Ed25519

string
identityKey

Base64 encoded X25519

string
oneTimePreKeys
Array<object>
object
keyId
integer
publicKey

Base64 encoded

string
registrationId
integer
signedPreKey
object
keyId
integer
publicKey

Base64 encoded

string
signature

Base64 encoded

string
timestamp
integer
message
string
success
boolean
Examplegenerated
{
"keyBundle": {
"address": "example",
"ed25519PublicKey": "example",
"identityKey": "example",
"oneTimePreKeys": [
{
"keyId": 1,
"publicKey": "example"
}
],
"registrationId": 1,
"signedPreKey": {
"keyId": 1,
"publicKey": "example",
"signature": "example",
"timestamp": 1
}
},
"message": "example",
"success": true
}

Service Unavailable

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}