From b0cf89e428c3230bf25d847b24c105ba484d7b58 Mon Sep 17 00:00:00 2001 From: ycc Date: Sat, 17 Dec 2022 21:50:22 +0100 Subject: [PATCH] bugfix in peer decrypt --- client/peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/peer.go b/client/peer.go index 28387d9..bc06a17 100644 --- a/client/peer.go +++ b/client/peer.go @@ -165,7 +165,7 @@ func (p *Peer) AsymEncryptMessage(Message []byte) (EncryptedMessage []byte, Sign // AsymDecryptMessage reads a message from a specific peer contact func (p *Peer) AsymDecryptMessage(Message []byte, Signature []byte) (DecryptedMessage []byte, err error) { - DecryptedMessage, err = meowlib.AsymDecryptAndCheck(p.MyIdentity.Private, p.Contact.ContactPublicKey, Message, Signature) + DecryptedMessage, err = meowlib.AsymDecryptAndCheck(p.MyEncryptionKp.Private, p.Contact.ContactPublicKey, Message, Signature) if err != nil { fmt.Println(err.Error()) return nil, err