Skip to main content

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 encrypt
  • password (string) - Password for encrypting the key share

Returns

  • Promise<string> - The encrypted key share as a string

Example

Key Share Format

Error Handling

Last modified on January 26, 2026