MCPcopy Create free account
hub / github.com/MiloOweno/kernel-lab / CheckIncomingMessage

Method CheckIncomingMessage

network/messageFilter.go:48–56  ·  view source on GitHub ↗

CheckMessage checks if the given tag/msg already in the collection, and return true if it was there before the call. Prepends our own random secret to the message to make it hard to abuse hash collisions.

(tag protocol.Tag, msg []byte, add bool, promote bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

readLoopMethod · 0.80

Calls 4

CheckDigestMethod · 0.95
NewHashFunction · 0.92
SumMethod · 0.80
WriteMethod · 0.65

Tested by

no test coverage detected