EncodeMeowed encodes a meowed (acknowledgment) packet.
()
| 40 | |
| 41 | // EncodeMeowed encodes a meowed (acknowledgment) packet. |
| 42 | func EncodeMeowed() []byte { |
| 43 | b := make([]byte, 0, 4+1) |
| 44 | b = append(b, meowMagic[:]...) |
| 45 | b = append(b, meowTypePong) |
| 46 | return b |
| 47 | } |
| 48 | |
| 49 | // ParseMeowPing parses a meow ping packet, returning the sender's |
| 50 | // node public key and disco public key. The pkt must have already |