mirror of
https://github.com/asmogo/nws.git
synced 2025-01-18 10:01:33 +00:00
Refactor key decoding logic to use common function
This commit is contained in:
parent
95cb6b5b71
commit
1a7ea5bb1f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user