View as Markdown

SDK reference · Rails

signOffer

signOffer in @provenanceauth/rails/deals, Rails. Sign an offer with the seller agent's Ed25519 private key (the one whose public half is registered at POST /v1/identify/agents/:id/signing_keys).

Signature

signOffer(input: OfferInput, privateKey: Ed25519PrivateJwk, opts?: { now?: number; ttlSeconds?: number }): Promise<{ offer: string; payload: OfferPayload; offer_hash: string }>

Parameters

inputOfferInputRequired
privateKeyEd25519PrivateJwkRequired
opts{ now?: number; ttlSeconds?: number }

Returns

Promise<{ offer: string; payload: OfferPayload; offer_hash: string }>

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.