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

Function CreateRequest

protocol/protocol.go:308–372  ·  view source on GitHub ↗

CreateRequest creates a Roughtime request given an entropy source and the contents of a previous reply for chaining. If this request is the first of a chain, prevReply can be empty. It returns the nonce (needed to verify the reply), the blind (needed to prove correct chaining to an external party) a

(versionPreference []Version, rand io.Reader, prevReply []byte, rootPublicKey ed25519.PublicKey)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

GetFunction · 0.92
mainFunction · 0.92
TestRequestSizeFunction · 0.85
TestRoundtripFunction · 0.85
TestChainingFunction · 0.85

Calls 7

nonceSizeFunction · 0.85
CalculateChainNonceFunction · 0.85
handleSRVTagFunction · 0.85
messageOverheadFunction · 0.85
EncodeFunction · 0.85
encodeFramedFunction · 0.85

Tested by 6

TestRequestSizeFunction · 0.68
TestRoundtripFunction · 0.68
TestChainingFunction · 0.68