# asVerifierKeyHash

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / asVerifierKeyHash

# Function: asVerifierKeyHash()

```
function asVerifierKeyHash(hex): VerifierKeyHash;
```

Converts a raw digest to the brand. Rejects rather than normalizes: a digest that needed normalizing didn't come from `compactc` or the ledger.

## Parameters[​](#parameters "Direct link to Parameters")

### hex[​](#hex "Direct link to hex")

`string`

## Returns[​](#returns "Direct link to Returns")

[`VerifierKeyHash`](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/VerifierKeyHash.md)
