MCPcopy Create free account
hub / github.com/MetaMask/torus-node / NewP2PMessage

Method NewP2PMessage

dkgnode/p2p.go:437–455  ·  view source on GitHub ↗

helper method - generate message data shared between all node's p2p protocols messageId: unique for requests, copied from request for responses

(messageId string, gossip bool, payload []byte, msgType string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

CallMethod · 0.95

Calls 5

CreateP2PBasicMsgFunction · 0.85
GetSelfPublicKeyMethod · 0.65
EthereumMethodsMethod · 0.65
IDMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected