interface · Browser and Node

# PublicKey

`@toip-tools/cose` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/cose/src/signers.ts#L14)

Import:

```ts
import { type PublicKey } from "@toip-tools/cose";
```

## Declaration

interface:

```ts
interface PublicKey {
  curve: Curve;
  /** Ed25519: 32 bytes. P-256: a SEC1 point (33 or 65 bytes) or a SubjectPublicKeyInfo. */
  bytes: Uint8Array;
}
```

## Properties

**`curve` (required)**

`Curve`

**`bytes` (required)**

`Uint8Array<ArrayBufferLike>`

Ed25519: 32 bytes. P-256: a SEC1 point (33 or 65 bytes) or a SubjectPublicKeyInfo.

[Usage guide](https://toip.tools/toolkit/cose/#usage) · [Error handling](https://toip.tools/toolkit/cose/#errors) · [All exports](https://toip.tools/toolkit/cose/api/)

---

This is the Markdown version of https://toip.tools/toolkit/cose/api/PublicKey/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
