# ap2BindingHash

ap2BindingHash in @provenanceauth/rails/ap2, Rails. Sha256(canonical JSON) of the binding: the value a bound token carries as `payload_hash`.

## Signature

```ts
ap2BindingHash(b: Ap2Binding): Promise<string>
```

## Parameters

- `b` (Ap2Binding)

## Returns

`Promise<string>`

Runs locally, with no request to the API.
