DDHDefs.lean
CKA party state for Diffie–Hellman ratchets (ACD19 §4.1.2)
Trusted: definitions used by the statement. The theorems of Computational/ use every definition in this file: read them. The theorems here are checked by Lean. See Computational/.
Defines the party state State of the Diffie–Hellman continuous-key-agreement (CKA) scheme of ACD19 §4.1.2, shared by the module-based scheme (Computational/, DEV-CKA9) and libsignal's abstract-DH instantiation (CKA/). A party holds either the peer's latest public element (pub h) or its own latest secret exponent (exp x).
@[expose] public sectionopen OracleComp OracleSpec ENNRealnamespace CryptoGames.CKA.DDHvariable {F G : Type} [Field F] [AddCommGroup G] [Module F G]inductive State
DDH-CKA party state (ACD19 §4.1.2): a peer public element pub h or a secret exponent exp x.
inductive State (F G : Type) where
| pub (h : G)
| exp (x : F)end CryptoGames.CKA.DDH