# verifyOffer

verifyOffer in @provenanceauth/rails/deals, Rails. Verify a signed offer against the seller's REGISTERED keys (never a key inside the offer): the signature, the key's status, expiry, the totals, the size, and `aud` when you pass the buyer.

## Signature

```ts
verifyOffer(offer: string, opts: { keys: SellerKey[]; now?: number; buyerAgentId?: string; seller?: string }): Promise<OfferVerifyResult>
```

## Parameters

- `offer` (string)
- `opts` ({ keys: SellerKey[]; now?: number; buyerAgentId?: string; seller?: string })

## Returns

`Promise<OfferVerifyResult>`

Runs locally, with no request to the API.
