Skip to main content

IJwsSignatureOptions

@iota/identity-wasm API documentation


Interface: IJwsSignatureOptions

Holds options to create JwsSignatureOptions.

Properties​

attachJwk?​

readonly optional attachJwk: boolean

Whether to attach the public key in the corresponding method to the JWS header.

Default: false


b64?​

readonly optional b64: boolean

Whether to Base64url encode the payload or not.

More Info


typ?​

readonly optional typ: string

The Type value to be placed in the protected header.

More Info


cty?​

readonly optional cty: string

Content Type to be placed in the protected header.

More Info


url?​

readonly optional url: string

The URL to be placed in the protected header.

More Info


nonce?​

readonly optional nonce: string

The nonce to be placed in the protected header.

More Info


kid?​

readonly optional kid: string

The kid to set in the protected header. If unset, the kid of the JWK with which the JWS is produced is used.

More Info


detachedPayload?​

readonly optional detachedPayload: boolean

/// Whether the payload should be detached from the JWS.

More Info.


customHeaderParameters?​

readonly optional customHeaderParameters: Record<string, any>

Additional header parameters.