generate Key
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
key Id
the ID of the key
key
keep null if you want to generate a random key
key Name
a human readable name
key Signer
Used to add a signature to the key (client should check key signature before storing secret)