What problem does it solve? Understanding a cryptographic protocol's message flow from source code, RFCs, or formal models is slow and error-prone, and hand-drawn diagrams often miss steps, invert arrows, or omit abort paths that matter for security review. ## Core Features & Use Cases - Dual input paths: Extracts protocol structure from source code (Python, Rust, Go, TypeScript, C/C++) or from specifications including RFCs, academic papers, informal prose, ProVerif (.pv), and Tamarin (.spthy) models. - Cryptographically annotated output: Produces a Mermaid sequenceDiagram written to a Markdown file plus an inline ASCII sequence diagram, with notes for DH, HKDF, signing, encryption, commitments, and phase grouping. - Spec divergence detection: When both code and spec exist, compares them and annotates divergences and underspecified crypto with warning markers. - Use Case: Given a Noise XX handshake implementation, generate a sequence diagram showing ephemeral key exchange, DH operations, and encrypted static key transmission, then verify it against the canonical Noise pattern. ## Quick Start Diagram the TLS 1.3 handshake from this RFC document and write the Mermaid sequence diagram to a file.