nooschain / tx-gossip/transaction-gossip-service / verifyNodeGossipAuth
Function: verifyNodeGossipAuth()
verifyNodeGossipAuth(
args):Promise<{nodeId:string;peerId:string; }>
Defined in: tx-gossip/transaction-gossip-service.ts:312
Verifies signed node-auth headers for an inbound gossip request.
A valid sender must be an active validator node, an active governance validator, and an active trusted peer whose local score is not quarantined or banned. The signature binds method, path, timestamp, and canonical body hash so a captured request cannot be replayed with modified contents.
Parameters
args
body
unknown
db
method
string
nodeId?
string
path
string
signature?
string
timestamp?
string
Returns
Promise<{ nodeId: string; peerId: string; }>