Extensions — Overview

ulda-sign is built to be pluggable:

  1. Inline custom digest — provide func/output/size in cfg.sign.
  2. Lazy CDN — set hash/cdn/output/size and the library will load and register the hasher on demand.
  3. Bulk map — pre-register many digests in externalHashers.
  4. Manual preload — call UldaSign.loadScriptOnce(url) before creating a signer.

All four flows converge to the same internal registry.

Security tip: pair CDN scripts with SRI (integrity="sha512-…") and a strict CSP.