# Types

### Table of contents

#### Types

* [PublicKeyOrKeysetEndpoint](#publickeyorkeysetendpoint)
* [ZkPassOutput](#zkpassoutput)
* [ZkPassProof](#zkpassproof)
* [VerifyZkPassProofResult](#verifyzkpassproofresult)

### Types

#### PublicKeyOrKeysetEndpoint

▸ **PublicKeyOrKeysetEndpoint**: [`PublicKey`](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/interfaces/interfaces#publickey) `|` [`KeysetEndpoint`](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/interfaces/interfaces#keysetendpoint)

A union type that can either be a PublicKey or KeysetEndpoint.

***

#### ZkPassOutput

▸ **ZkPassOutput**: `{ [key: string]: string | number | boolean }`

Key-value pairs representing the output data from a zkPass operation.

***

#### ZkPassProof

▸ **ZkPassProof**: `Object`

Properties representing a zkPass proof.

| Name                       | Type     | Description                       |
| -------------------------- | -------- | --------------------------------- |
| `zkproof`                  | `string` | The zkPass proof string           |
| `dvr_title`                | `string` | Title of the DVR                  |
| `dvr_id`                   | `string` | Identifier of the DVR             |
| `dvr_digest`               | `string` | Digest of the DVR                 |
| `user_data_verifying_keys` | `object` | Keys used for verifying user data |
| `dvr_verifying_key`        | `object` | Key used for verifying DVR        |
| `time_stamp`               | `number` | Timestamp of the proof generation |

***

#### VerifyZkPassProofResult

▸ **VerifyZkPassProofResult**: `Object`

Result of verifying a zkPass proof.

<table><thead><tr><th>Name</th><th width="247">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>output</code></td><td><a href="#zkpassoutput"><code>ZkPassOutput</code></a></td><td>The output data</td></tr><tr><td><code>zkpass_proof</code></td><td><a href="#zkpassproof"><code>ZkPassProof</code></a></td><td>The zkPass proof data</td></tr></tbody></table>
