Files
NapCatQQ/.pnpm-store/v3/files/02/9dbc7739b1348a778a14e43024b6d3ed6ad4bdff668f01b2ca9c2e63ebff9d3f5fc5e324e34b9978c0db87533246342e807db684c21b6c235ccc8738f4356f
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

31 lines
1.2 KiB
Plaintext

import type { Base64URLString } from '../types/index.js';
import type { AlgSign, MetadataStatement } from './mdsTypes.js';
import { type COSEALG, type COSECRV, COSEKTY } from '../helpers/cose.js';
import type { Uint8Array_ } from '../types/index.js';
/**
* Match properties of the authenticator's attestation statement against expected values as
* registered with the FIDO Alliance Metadata Service
*/
export declare function verifyAttestationWithMetadata({ statement, credentialPublicKey, x5c, attestationStatementAlg, }: {
statement: MetadataStatement;
credentialPublicKey: Uint8Array_;
x5c: Uint8Array_[] | Base64URLString[];
attestationStatementAlg?: number;
}): Promise<boolean>;
type COSEInfo = {
kty: COSEKTY;
alg: COSEALG;
crv?: COSECRV;
};
/**
* Convert ALG_SIGN values to COSE info
*
* Values pulled from `ALG_KEY_COSE` definitions in the FIDO Registry of Predefined Values
*
* https://fidoalliance.org/specs/common-specs/fido-registry-v2.2-ps-20220523.html#authentication-algorithms
*/
export declare const algSignToCOSEInfoMap: {
[key in AlgSign]: COSEInfo;
};
export {};
//# sourceMappingURL=verifyAttestationWithMetadata.d.ts.map