From 1a7ea5bb1f886471b82ebbe3043dff257d172222 Mon Sep 17 00:00:00 2001 From: dd dd Date: Mon, 2 Sep 2024 21:32:49 +0200 Subject: [PATCH] Refactor key decoding logic to use common function --- exit/https.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exit/https.go b/exit/https.go index d316607..ddaf27a 100644 --- a/exit/https.go +++ b/exit/https.go @@ -78,7 +78,7 @@ func (e *Exit) handleCertificateEvent( if privateKeyEvent == nil { return tls.Certificate{}, errNoCertificateEvent } - privateKeyBytes, targetPublicKeyBytes, err := protocol.GetEncryptionKeys(e.config.NostrPrivateKey, msg.PubKey) + privateKeyBytes, targetPublicKeyBytes, err := protocol.GetEncryptionKeys(e.config.NostrPrivateKey, privateKeyEvent.PubKey) if err != nil { return tls.Certificate{}, err }