> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# verifyMessage

```ts theme={null}
function verifyMessage(message, sig): string
```

Return the address of the private key that produced the signature `sig` during signing for `message`.

## Parameters

| Parameter | Type                                                       | Description                  |
| :-------- | :--------------------------------------------------------- | :--------------------------- |
| `message` | `string` \| `Uint8Array`                                   | The message that was signed. |
| `sig`     | [`SignatureLike`](/sdk/content/type-aliases/SignatureLike) | The signature to verify.     |

## Returns

`string`

The address of the signer.

## Source

[hash/message.ts:54](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/hash/message.ts#L54)
