@me2em/crypto
    Preparing search index...

    Interface WrapKeyParams

    interface WrapKeyParams {
        keyBytes: Uint8Array;
        recipientBundle: PreKeyBundle;
        myIdentity: IdentityKeys;
        contextSalt: Uint8Array;
        info: string;
    }
    Index
    keyBytes: Uint8Array

    The 32-byte key to wrap (e.g. a group key or file key).

    recipientBundle: PreKeyBundle

    Recipient's published PreKeyBundle (SPK signature will be re-verified inside initiateX3DH).

    myIdentity: IdentityKeys

    Initiator's Ed25519 identity key pair.

    contextSalt: Uint8Array

    Application context salt (e.g. groupId, recordingId). MUST be identical for wrap and unwrap.

    info: string

    Purpose string, e.g. 'me2em/crypto/v1/group-key'.