MCPcopy Index your code
hub / github.com/cloudflare/roughtime / VerifyReply

Function VerifyReply

protocol/protocol.go:815–991  ·  view source on GitHub ↗

VerifyReply parses the Roughtime reply in replyBytes, authenticates it using publicKey and verifies that nonce is included in it. It returns the included timestamp and radius.

(versionPreference []Version, replyBytes, publicKey []byte, nonce []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

GetFunction · 0.92
VerifyMethod · 0.92
mainFunction · 0.92
TestRunTestVectorsFunction · 0.85
TestRoundtripFunction · 0.85
TestChainingFunction · 0.85
FuzzVerifyReplyFunction · 0.85

Calls 15

nonceSizeFunction · 0.85
decodeFramedFunction · 0.85
DecodeFunction · 0.85
errDecodeFunction · 0.85
VersionTypeAlias · 0.85
errUnsupportedVersionFunction · 0.85
getSubmessageFunction · 0.85
getFixedLengthFunction · 0.85
getValueFunction · 0.85
getUint64Function · 0.85
getUint32Function · 0.85

Tested by 4

TestRunTestVectorsFunction · 0.68
TestRoundtripFunction · 0.68
TestChainingFunction · 0.68
FuzzVerifyReplyFunction · 0.68