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:
Loki 2026-10-24 22:05:19 +02:00
parent 5f594046a6
commit 29883a3187
31 changed files with 2085 additions and 567 deletions

View file

@ -71,6 +71,11 @@ export component MainWindow inherits Window {
in-out property <bool> connecting: false;
in-out property <bool> auto-reconnect: false;
in-out property <string> node-name: "";
// 0 none, 1 first use, 2 certificate fingerprint changed, 3 server identity changed
in-out property <int> trust-kind: 0;
in-out property <string> trust-address: "";
in-out property <string> trust-received: "";
in-out property <string> trust-expected: "";
in-out property <string> identity-pubkey: "";
in-out property <bool> vault-enabled: false;
@ -155,6 +160,9 @@ export component MainWindow inherits Window {
callback connect(string);
callback remove-bookmark(string);
callback add-bookmark(string);
callback trust-accept();
callback trust-forget();
callback trust-dismiss();
callback close-settings();
callback set-passphrase(string, string);
callback remove-passphrase();
@ -177,6 +185,13 @@ export component MainWindow inherits Window {
connecting: root.connecting;
auto-reconnect <=> root.auto-reconnect;
node-name: root.node-name;
trust-kind: root.trust-kind;
trust-address: root.trust-address;
trust-received: root.trust-received;
trust-expected: root.trust-expected;
trust-accept => { root.trust-accept(); }
trust-forget => { root.trust-forget(); }
trust-dismiss => { root.trust-dismiss(); }
open-settings => { root.open-settings(); }
address-edited(text) => { root.address-edited(text); }
auto-reconnect-changed(value) => { root.auto-reconnect-changed(value); }