ExWapp.Noise.Certificate (ExWapp v0.1.2)

Copy Markdown View Source

Validates the WhatsApp Noise certificate chain presented during handshake.

Verification anchors the intermediate certificate to WhatsApp's public key and checks that the leaf certificate binds the expected server static key.

Summary

Functions

verify(cert_bytes, static_key)

@spec verify(binary(), binary()) :: :ok | {:error, term()}

verify_signature(public_key, message, signature)

@spec verify_signature(binary(), binary(), binary()) :: boolean()