sealOpen static method
Decrypts a sealed crypto box.
- Throws: An AskarKeyException if decryption fails.
Implementation
static Uint8List sealOpen({required Key recipientKey, required Uint8List ciphertext}) {
try {
return askarKeyCryptoBoxSealOpen(
recipientKey.handle,
ciphertext,
).getValueOrException();
} catch (e) {
throw AskarKeyException('Error on crypto box seal open: $e');
}
}