{"version":3,"file":"mdocSupportedAlgs.mjs","names":[],"sources":["../../../src/modules/mdoc/mdocSupportedAlgs.ts"],"sourcesContent":["import { type KnownJwaSignatureAlgorithm, KnownJwaSignatureAlgorithms } from '../kms'\n\nexport type MdocSupportedSignatureAlgorithm = (typeof mdocSupportedSignatureAlgorithms)[number]\nexport const mdocSupportedSignatureAlgorithms = [\n  KnownJwaSignatureAlgorithms.ES256,\n  KnownJwaSignatureAlgorithms.ES384,\n  KnownJwaSignatureAlgorithms.ES512,\n  KnownJwaSignatureAlgorithms.EdDSA,\n] satisfies KnownJwaSignatureAlgorithm[]\n\nexport function isMdocSupportedSignatureAlgorithm(\n  alg: KnownJwaSignatureAlgorithm\n): alg is MdocSupportedSignatureAlgorithm {\n  return mdocSupportedSignatureAlgorithms.includes(alg as MdocSupportedSignatureAlgorithm)\n}\n"],"mappings":";;;;;;AAGA,MAAa,mCAAmC;CAC9C,4BAA4B;CAC5B,4BAA4B;CAC5B,4BAA4B;CAC5B,4BAA4B;CAC7B;AAED,SAAgB,kCACd,KACwC;AACxC,QAAO,iCAAiC,SAAS,IAAuC"}