MCPcopy Create free account
hub / github.com/cloudflare/roughtime / Verify

Method Verify

client/client.go:374–399  ·  view source on GitHub ↗

Verify returns true if the chain is valid. A chain is valid if for each link in the chain, (1) the signature in the server's response is valid, and (2) the response was used to generate the nonce in the next link's request. If prev != nil, then prev.Resp is used to compute the nonce for the first r

(prev *Roughtime)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

VerifyReplyFunction · 0.80

Calls 3

CalculateChainNonceFunction · 0.92
VerifyReplyFunction · 0.92

Tested by

no test coverage detected