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
inputOfferInputRequiredprivateKeyEd25519PrivateJwkRequiredopts{ now?: number; ttlSeconds?: number }
Returns
Promise<{ offer: string; payload: OfferPayload; offer_hash: string }>
HTTP operation
Runs locally, with no request to the API.