saveIdentityAsync
suspend fun saveIdentityAsync(sessionId: String, authFactor: AuthFactor, challenge: String, rawTMRSymKey: ByteArray, identity: ByteArray)
Save the Seald account to SSKS.
Parameters
sessionId | Session ID given by SSKS to your app's server. |
authFactor | Authentication method of this user, to which SSKS has sent a challenge at the request of your app's server. |
challenge | The 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 . |
rawTMRSymKey | The raw encryption key used to encrypt / decrypt the stored identity keys. This MUST be a cryptographically random buffer of 64 bytes. |
identity | The identity to save. |
Throws
Exception |