Polkadot Apps
    Preparing search index...
    • NaCl box decrypt: authenticated decryption where both sender and recipient are known.

      Input format: nonce(24) || ciphertext.

      Parameters

      • packed: Uint8Array

        The packed message produced by boxEncrypt.

      • senderPublicKey: Uint8Array

        The sender's 32-byte Curve25519 public key.

      • recipientSecretKey: Uint8Array

        The recipient's 32-byte Curve25519 secret key.

      Returns Uint8Array

      The decrypted plaintext bytes.

      If the packed data is too short, or decryption/authentication fails.