Extensions — Overview
ulda-sign is built to be pluggable:
-
Inline custom digest — provide
func/output/sizeincfg.sign. -
Lazy CDN — set
hash/cdn/output/sizeand the library will load and register the hasher on demand. -
Bulk map — pre-register many digests in
externalHashers. -
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.