IO Wallet SDK
    Preparing search index...
    • Fetches and validates a trust chain starting from a leaf entity.

      Traverses authority_hints upward from the leaf entity until a known trust anchor is reached (or until no further hints exist), fetches every entity configuration along the path and the corresponding subordinate statements, verifies all signatures, and returns the assembled chain as an array of compact JWTs.

      Warning: When options.trustAnchorUrls is omitted, the chain root is accepted unconditionally. Callers are responsible for applying their own root-of-trust verification in that case.

      Parameters

      Returns Promise<string[]>

      Ordered array of compact JWTs forming the validated trust chain.

      If the chain cannot be built, any element is expired or invalid, or the root is not a trusted anchor.