generateKey
abstract suspend fun generateKey( keyId: String, key: SsssKeySpec?, keyName: String, keySigner: KeySigner?): SsssKeyCreationInfo
Content copied to clipboard
Generates a SSSS key for encrypting secrets. Use the SsssKeyCreationInfo object returned by the callback to get more information about the created key (recovery key ...)
Return
key creation info
Parameters
keyId
the ID of the key
key
keep null if you want to generate a random key
keyName
a human readable name
keySigner
Used to add a signature to the key (client should check key signature before storing secret)