Constructs a SealingKey instance with the given private and public keys.
The private key used for decryption.
The public key used for encryption.
Will throw an error if the provided keys lengths do not match the required lengths for private and public keys.
The private key used for decryption.
The public key used for encryption.
Static
sealSeals (encrypts) the provided message for a receiver with the specified public key.
The message to be encrypted.
The public key of the intended recipient.
string - The encrypted message in hexadecimal format.
Will throw if the provided publicKey or value do not meet defined preconditions.
A class representing a SealingKey which provides cryptographic sealing (encryption) and unsealing (decryption) capabilities.