function · Browser and Node
sigStructure
The bytes a COSE_Sign1 signature covers: ["Signature1", protected, external_aad, payload].
@toip-tools/coseView sourceimport { sigStructure } from "@toip-tools/cose";
Declaration
sigStructure(protectedBytes: Uint8Array, payload: Uint8Array, externalAad?: Uint8Array): Uint8Array;
Parameters
protectedBytesrequiredUint8Array<ArrayBufferLike>payloadrequiredUint8Array<ArrayBufferLike>externalAadoptionalUint8Array<ArrayBufferLike>Default:
EMPTY
Returns
Uint8Array<ArrayBufferLike>