@me2em/crypto
    Preparing search index...

    Function verifySignedPreKey

    • Verifies a Signed Pre-Key bundle against the identity public key. MUST be called by the initiator BEFORE running X3DH — this is the impersonation defense.

      Parameters

      • bundle: PreKeyBundle

        PreKeyBundle whose SPK signature to verify.

      • identityPublicKey: Uint8Array

        Recipient's Ed25519 public key.

      Returns void

      'VERIFICATION_FAILED' if invalid.

      verifySignedPreKey(bundle, bobIdentityPub);
      const result = await initiateX3DH(aliceIdentity, bundle);