Skip to content


suspend fun saveIdentityAsync(sessionId: String, authFactor: AuthFactor, challenge: String, rawTMRSymKey: ByteArray, identity: ByteArray)

Save the Seald account to SSKS.


sessionIdSession ID given by SSKS to your app's server.
authFactorAuthentication method of this user, to which SSKS has sent a challenge at the request of your app's server.
challengeThe challenge sent by SSKS to the user's authentication method. Set to empty string if the SSKS server replies to challenge_send API call with must_authenticate set to false.
rawTMRSymKeyThe raw encryption key used to encrypt / decrypt the stored identity keys. This MUST be a cryptographically random buffer of 64 bytes.
identityThe identity to save.