Polkadot Apps
    Preparing search index...

    Interface EncryptedPayload

    Common encrypted payload envelope carrying algorithm metadata alongside ciphertext. Useful for protocols that need to negotiate or identify the cipher used.

    interface EncryptedPayload {
        algorithm: SymmetricAlgorithm;
        ciphertext: Uint8Array;
        kem?: KemAlgorithm;
        nonce: Uint8Array;
    }
    Index

    Properties

    The symmetric algorithm used to produce this ciphertext.

    ciphertext: Uint8Array

    The encrypted data (does not include the nonce).

    How the symmetric key was established (omit if key was pre-shared or derived directly via HKDF).

    nonce: Uint8Array

    The nonce/IV used during encryption.