View as Markdown

SDK reference · Verifiers

VerifyOffer

VerifyOffer in go.provenanceauth.com/verify (Go), Verifiers. VerifyOffer verifies a signed offer against the seller's registered keys (never a key inside the offer): the header, the key's status, the Ed25519 signature, expiry (now: unix seconds, 0 = wall clock), and aud when buyerAgentID is set.

Signature

provenanceverify.VerifyOffer(offer string, keys []SellerKey, now int64, buyerAgentID string) OfferResult

Parameters

offerstringRequired
keys[]SellerKeyRequired
nowint64Required
buyerAgentIDstringRequired

Returns

OfferResult

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.