20 lines
634 B
Plaintext
20 lines
634 B
Plaintext
import { COSEALG } from './cose.js';
|
|
import type { Uint8Array_ } from '../types/index.js';
|
|
/**
|
|
* Verify an authenticator's signature
|
|
*/
|
|
export declare function verifySignature(opts: {
|
|
signature: Uint8Array_;
|
|
data: Uint8Array_;
|
|
credentialPublicKey?: Uint8Array_;
|
|
x509Certificate?: Uint8Array_;
|
|
hashAlgorithm?: COSEALG;
|
|
}): Promise<boolean>;
|
|
/**
|
|
* Make it possible to stub the return value during testing
|
|
* @ignore Don't include this in docs output
|
|
*/
|
|
export declare const _verifySignatureInternals: {
|
|
stubThis: (value: Promise<boolean>) => Promise<boolean>;
|
|
};
|
|
//# sourceMappingURL=verifySignature.d.ts.map |