From c3d75e68f4aee42b69f37033f93e2cdafe58f836 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Tue, 18 Aug 2026 22:52:42 +0200 Subject: [PATCH] pubkey testing --- src/app/app.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/app.ts b/src/app/app.ts index cb64d2a..e842962 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -61,6 +61,14 @@ export default class Enclave { return; } + if ( + this.serverList[hostname]?.publicKey !== + base58.encode(this.server.serverPublicKey) + ) { + console.error("Server's new public key doesn't match old one"); + return; + } + const metaResponse = await axios.get( getHTTPUrl(hostname, isSecure, "/meta"), );