Skip to main content
This is an experimental feature and may change or be removed in future versions.
Host DiscretionThe availability and behavior of signManifest depends entirely on the host implementation. Hosts may choose to:
  • Enable manifest signing for all domains
  • Restrict signing to specific allowlisted domains
  • Disable the feature entirely
  • Implement additional validation requirements
Check with your specific host’s documentation for their manifest signing policies.
Signs a domain manifest for verification and authenticity purposes.

Usage

Parameters

options

  • domain (required): The domain to sign the manifest for

Return Value

Returns an object with the following properties:
  • header: The header component of the signed manifest
  • payload: The payload component containing the domain data
  • signature: The cryptographic signature

Errors

RejectedByUser

Thrown if a user rejects the request to sign the manifest.

InvalidDomain

Thrown when the provided domain is invalid or malformed.

GenericError

Thrown when manifest signing fails for various reasons including host restrictions, network issues, or other implementation-specific failures.

Generic Error Handling

For robust error handling, you should catch all specific error types: