Function Signature
Description
Encrypts a key share using the provided password. This function is used for secure storage and transmission of key shares.Parameters
Required Parameters
keyShare
(any
) - The key share to encryptpassword
(string
) - Password for encrypting the key share
Returns
Promise<string>
- The encrypted key share as a string
Example
Key Share Format
Error Handling
Related Functions
decryptKeyShare()
- Decrypt a key shareexportExternalServerKeyShares()
- Export external server key shares