# 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

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

## Parameters

- `input` (OfferInput)
- `privateKey` (Ed25519PrivateJwk)
- `opts` ({ now?: number; ttlSeconds?: number }, optional)

## Returns

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

Runs locally, with no request to the API.
