messages structure simplfy + routing

This commit is contained in:
ycc
2022-10-22 22:40:03 +02:00
parent fc3747a124
commit 7b95b9df71
4 changed files with 189 additions and 251 deletions

View File

@ -94,7 +94,6 @@ func (p *Peer) AsymDecryptMessage(Message []byte, Signature []byte) (DecryptedMe
func (p *Peer) PackUserMessage(message []byte, signature []byte) meowlib.PackedUserMessage {
var msg meowlib.PackedUserMessage
msg.Destination = p.Contact.LookupPublicKey
msg.From = p.Me.Public
msg.Payload = message
msg.Signature = signature
return msg