Function GenerateSealingKey

  • Asynchronously generates a new SealingKey. This function uses the 'nacl' library to create a new public/private key pair for sealing purposes. A sealing key is used to encrypt data such that it can only be unsealed (decrypted) by the owner of the corresponding private key.

    Returns Promise<SealingKey>

    • A promise that resolves to a new SealingKey object containing the hexadecimal strings of the public and private keys.