decrypt method
Decrypts the ciphertext using the ephemeral public key enclosed in the ciphertext and the SealedBox private key, returning the plaintext message.
Implementation
Uint8List decrypt(Uint8List ciphertext) {
if (_privateKey == null) {
throw Exception(
'SealedBox does not have the privateKey to decrypt the ciphertext');
}
return _cryptoBoxSealOpen(ciphertext);
}