function · Browser and Node

# sigStructure

The bytes a COSE\_Sign1 signature covers: `["Signature1", protected, external_aad, payload]`.

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

Import:

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

## Declaration

Signature:

```ts
sigStructure(protectedBytes: Uint8Array, payload: Uint8Array, externalAad?: Uint8Array): Uint8Array;
```

### Parameters

**`protectedBytes` (required)**

`Uint8Array<ArrayBufferLike>`

**`payload` (required)**

`Uint8Array<ArrayBufferLike>`

**`externalAad` (optional)**

`Uint8Array<ArrayBufferLike>`

Default: `EMPTY`

### Returns

`Uint8Array<ArrayBufferLike>`

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