View as Markdown

SDK reference · Rails

verifyDealAcceptance

verifyDealAcceptance in @provenanceauth/rails/deals, Rails. The seller's offline check of a buyer's acceptance token: our ES256 signature against the JWKS you fetched, expiry, deal.offer_hash equal to YOUR offer's hash, the seller being you, aud, the revocation list you pass, and that every person the offer (or the buyer) required approved, with at least the method and tier asked for, over these exact terms.

Signature

verifyDealAcceptance(token: string, offer: string | OfferPayload, opts: { jwks: Jwks; seller?: string; revocations?: DealRevocations }): Promise<AcceptanceResult>

Parameters

tokenstringRequired
offerstring | OfferPayloadRequired
opts{ jwks: Jwks; seller?: string; revocations?: DealRevocations }Required

Returns

Promise<AcceptanceResult>

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.