# Functions ## encode ▸ **encode**(publicKey: *`Uint8Array`*, seed?: *`Uint8Array` | `null`*, passphrase?: *`undefined` | `string`*): `Uint8Array` *Defined in [pair/encode.ts:10](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/keyring/src/pair/encode.ts#L10)* **Parameters:** | Name | Type | | ------ | ------ | | publicKey | `Uint8Array` | | `Optional` seed | `Uint8Array` | `null` | | `Optional` passphrase | `undefined` | `string` | **Returns:** `Uint8Array` ___