Finds the key a Status List Token in CWT form, referenced by an mdoc,
is verified with: the leaf of its x5chain, which must chain to
oid4vp.mdocTrustAnchors as the document signer does (ISO/IEC 18013-5
section 12.3.6.2).
Parameters
cwt: Buffer
the token's bytes
anchorsPem: string
the anchors, PEM
Returns Promise<any>
the leaf's public key
Throws
Error when it carries no chain or the chain is not trusted
Finds the key a Status List Token in CWT form, referenced by an mdoc, is verified with: the leaf of its
x5chain, which must chain tooid4vp.mdocTrustAnchorsas the document signer does (ISO/IEC 18013-5 section 12.3.6.2).