//#region src/internal/crypto/sig-verify.d.ts /** Failure: the signature algorithm or its parameters are not supported. */ interface VerifySignatureConfigFailure { /** Discriminant for the failure branch. */ readonly ok: false; /** Machine-readable failure code. */ readonly code: "unsupported_signature_algorithm_parameters"; /** Human-readable explanation of why the algorithm is unsupported. */ readonly reason: string; } /** Failure: signature verification could not run to completion. */ interface VerifySignedDataFailure { /** Discriminant for the failure branch. */ readonly ok: false; /** Machine-readable failure code. */ readonly code: "verification_error"; /** Human-readable explanation of the verification failure. */ readonly reason: string; } /** Success branch of {@linkcode VerifySignedDataResult}. */ interface VerifySignedDataSuccess { /** Discriminant for the success branch. */ readonly ok: true; /** Whether the cryptographic signature is valid for the given data and key. */ readonly valid: boolean; } /** Result of a full signature verification: validity, unsupported params, or a runtime verification failure. */ type VerifySignedDataResult = VerifySignedDataSuccess | VerifySignatureConfigFailure | VerifySignedDataFailure; //#endregion export { VerifySignatureConfigFailure, VerifySignedDataFailure, VerifySignedDataResult, VerifySignedDataSuccess }; //# sourceMappingURL=sig-verify.d.ts.map