Function Signature
Description
Encrypts a key share with a password. This function provides a way to securely encrypt key shares for storage or transmission.Parameters
Required Parameters
keyShare(any) - The key share to encryptpassword(string) - Password for encryption
Returns
Promise<string>- The encrypted key share
Example
Error Handling
Related Functions
decryptKeyShare()- Decrypt an encrypted key shareexportExternalServerKeyShares()- Export external server key shares