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) AgentSignatureCheckParameters
methodRequiredrawURLstringRequiredheadersRequestHeadersRequiredlabelstringRequiredjwkmap[string]anyRequirednowint64Required
Returns
AgentSignatureCheck
HTTP operation
Runs locally, with no request to the API.