# getPublicKey

_Returns a string encoding a public key._

## Type

```ts
;() => string
```

### Return Value

A string encoding BIP32 public key.

## Example

:::code source="../../../lib/test/lib/computer/get-public-key.test.ts" :::

<a href="https://github.com/bitcoin-computer/monorepo/blob/main/packages/lib/test/lib/computer/get-public-key.test.ts" target=_blank>Source</a>
