Skip to main content

RSA To Ed25519 Migration

POST /session/secret

The upgrade from RSA to Ed25519 mainly involves PIN encryption and API access signature. After the Ed25519 key is generated locally, the successful call of the POST /session/secret interface means the migration is successful. Note that the process is irreversible and cannot be rolled back from Ed25519 to RSA.

Endpoint URL

 https://api.mixin.one/session/secret

Authentication and options

Authorization
Authorized
LimitationNo limitation

Payload

{
"session_secret": "Ed25519 public key in base64"
}

Example request

curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/session/secret --data '{"session_secret":"AAAAC3NzaC1lZDI1NTE5AAAAIB8Ht8Z3j6yDWPBHQtOp/R9rjWvfMYo3MSA/K6q8D86r"}'
Response
{
"data": [
{
"pin_token": "..."
}
}