IsMeowPacket reports whether pkt starts with the meow magic prefix.
(pkt []byte)
| 24 | |
| 25 | // IsMeowPacket reports whether pkt starts with the meow magic prefix. |
| 26 | func IsMeowPacket(pkt []byte) bool { |
| 27 | return len(pkt) >= 4 && [4]byte(pkt[:4]) == meowMagic |
| 28 | } |
| 29 | |
| 30 | // EncodeMeowPing encodes a meow ping packet containing the sender's |
| 31 | // node public key and disco public key. |
no outgoing calls
no test coverage detected