SignatureParams

import { SignatureParams } from "jsr:@ende/http/unstable-message-signatures";

interface ยท experimental

interface SignatureParams

Signature parameters used when signing a message.

See also

Properties

components

components: ComponentInput[]

Ordered list of covered components.

algorithm

algorithm?: SignatureAlgorithm

Signature algorithm.

keyId

keyId?: string

Key identifier. Mapped to/from the wire-format parameter name keyid.

created

created?: number

Creation time as seconds since Unix epoch (not milliseconds).

expires

expires?: number

Expiration time as seconds since Unix epoch (not milliseconds).

nonce

nonce?: string

Nonce for replay protection.

tag

tag?: string

Application-specific tag.

label

label?: string

Signature label, defaults to "sig". Must be a valid sf-key (lowercase alphanumeric, _, -, ., *). Must also be unique among existing signatures on the target message per RFC 9421 section 4; a TypeError is thrown on collision.

Source