open static method

Uint8List open(
  1. Uint8List cipher,
  2. KeyPair keys
)

Decrypts the ciphertext using given keypair.

Implementation

static Uint8List open(Uint8List cipher, KeyPair keys) =>
    Sodium.cryptoBoxSealOpen(cipher, keys.pk, keys.sk);