feat(client): TLS 1.3 control connection with SPKI pinning and LNEx v3
Replace the custom X25519/HKDF/ChaCha20 TCP layer with rustls (TLS 1.3 only, ALPN vnox-lnex/3, no plaintext or fallback). Add a trust store (pin, trust on first use, public CA), block changed fingerprints and identities, bind the Ed25519 auth signature to the TLS exporter, add RU/EN trust dialog and update the interop test and e2e voice tool.
This commit is contained in:
parent
5f594046a6
commit
29883a3187
31 changed files with 2085 additions and 567 deletions
|
|
@ -8,8 +8,11 @@ message Hello {
|
|||
bytes server_pubkey = 2;
|
||||
bytes challenge_nonce = 3;
|
||||
string node_name = 4;
|
||||
bytes server_eph_pubkey = 5;
|
||||
// LNEx v3: the ephemeral X25519 exchange was replaced by TLS 1.3.
|
||||
reserved 5;
|
||||
reserved "server_eph_pubkey";
|
||||
bool private_mode = 6;
|
||||
// Ed25519 over "VNOX-LNEx-v3-server-hello\0" || tls_exporter || Hello(signature empty).
|
||||
bytes server_signature = 7;
|
||||
}
|
||||
|
||||
|
|
@ -17,8 +20,10 @@ message Auth {
|
|||
bytes client_pubkey = 1;
|
||||
string nickname = 2;
|
||||
string lnex_version = 3;
|
||||
// Ed25519 over the client-auth transcript bound to the TLS exporter (see docs/02-protocol/tls.md).
|
||||
bytes signature = 4;
|
||||
bytes client_eph_pubkey = 5;
|
||||
reserved 5;
|
||||
reserved "client_eph_pubkey";
|
||||
}
|
||||
|
||||
message Session {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue