interface · Browser and Node

# SignOptions

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

Import:

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

## Declaration

interface:

```ts
interface SignOptions {
  /** Header 3: a media type, or a CoAP content-format number. */
  contentType?: string | number;
  /** Leave the kid out of the protected header (radio frames). */
  omitKid?: boolean;
  /** Unprotected header parameters. Default: none. */
  unprotected?: Map<number, unknown>;
  /** Bound into the signature but not sent (RFC 9052 §4.3). */
  externalAad?: Uint8Array;
}
```

## Properties

**`contentType` (optional)**

`string | number | undefined`

Header 3: a media type, or a CoAP content-format number.

**`omitKid` (optional)**

`boolean | undefined`

Leave the kid out of the protected header (radio frames).

**`unprotected` (optional)**

`Map<number, unknown> | undefined`

Unprotected header parameters. Default: none.

**`externalAad` (optional)**

`Uint8Array<ArrayBufferLike> | undefined`

Bound into the signature but not sent (RFC 9052 §4.3).

[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/SignOptions/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
