@me2em/crypto
    Preparing search index...

    Interface UnwrapKeyParams

    interface UnwrapKeyParams {
        wrapped: WrappedKey;
        myIdentity: IdentityKeys;
        mySignedPreKey: SignedPreKey;
        myOneTimePreKey: OneTimePreKey;
        contextSalt: Uint8Array;
        info: string;
    }
    Index
    wrapped: WrappedKey
    myIdentity: IdentityKeys

    Recipient's identity key pair.

    mySignedPreKey: SignedPreKey

    Recipient's SPK (the one matching the bundle the initiator used).

    myOneTimePreKey: OneTimePreKey

    Recipient's OTK matching usedOneTimePreKeyId — REQUIRED (initiateX3DH enforces OTK; unwrap mirrors it). ⚠️ Consumed: the private key is wiped IN PLACE by completeX3DH (session-bound ephemeral-key model) — pass a copy if retention is needed.

    contextSalt: Uint8Array
    info: string