View as Markdown

SDK reference · Verifiers

VerifyRequestSignature

VerifyRequestSignature in go.provenanceauth.com/verify (Go), Verifiers. VerifyRequestSignature builds the signature base from the request itself and checks the labelled signature against a JWK: the tag, the networks' parameter rules for a network tag, and the signature bytes.

Signature

provenanceverify.VerifyRequestSignature(method, rawURL string, headers RequestHeaders, label string, jwk map[string]any, now int64) AgentSignatureCheck

Parameters

methodRequired
rawURLstringRequired
headersRequestHeadersRequired
labelstringRequired
jwkmap[string]anyRequired
nowint64Required

Returns

AgentSignatureCheck

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.