generateEncryptionDecryptionKeyPair
Generates a keypair for encrypting/decrypting keyshare backups.
Use this to create encryption keys for secure keyshare export/import operations. The encryption key should be kept secure, while the decryption key can be shared with other parties for import operations.
Example:
// Generate encryption keys for backup
val (encryptionKey, decryptionKey) = SilentShard.ECDSA.generateEncryptionDecryptionKeyPair()
// Export keyshare
val exportedData = session.export(keyshare).getOrThrow()
// Store exported data securely
secureStorage.save(exportedData)Content copied to clipboard
Return
Pair of (encryptionKey, decryptionKey) as ByteArray