# @provenanceauth/rails/disputes

@provenanceauth/rails/disputes in the Rails: 2 methods. `@provenanceauth/rails/disputes`, check an agent-dispute bundle offline, for a seller, a buyer or a rail that receives the export from `GET /v1/authorize/disputes/:id/bundle`.

## Methods

### [disputeBundleDigest](https://provenanceauth.com/docs/sdks/rails/disputes/dispute-bundle-digest.md)

```ts
disputeBundleDigest(bundle: unknown): Promise<string>
```

Sha256 (hex) of the bundle's canonical JSON: what the signed digest covers.

### [verifyDisputeBundle](https://provenanceauth.com/docs/sdks/rails/disputes/verify-dispute-bundle.md)

```ts
verifyDisputeBundle(bundle: DisputeBundle, token: string, jwks: Jwks): Promise<DisputeBundleResult>
```

Check a dispute export offline against Provenance's JWKS.
