# Function: getVersionId()

```ts
function getVersionId(envelope): Promise<string>;
```

Defined in: [packages/core/src/schema/version.ts:148](https://github.com/leifriksheim/minca/blob/main/core/src/schema/version.ts#L148)

Computes the id of an envelope by hashing its canonical serialization.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `envelope` | [`Envelope`](https://minca.dev/api/core/type-aliases/Envelope.md) |

## Returns

`Promise`\<`string`\>
