Skip to main content

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 encrypt
  • password (string) - Password for encryption

Returns

  • Promise<string> - The encrypted key share

Example

Error Handling

Last modified on January 26, 2026