/opt/canhelp/node_modules/@better-auth/utils/dist
Edit: /opt/canhelp/node_modules/@better-auth/utils/dist/ecdsa.d.mts (1013B)
import { a as ECDSACurve, T as TypedArray, S as SHAFamily, b as ExportKeyFormat } from './shared/utils.ecd028f7.mjs';
declare const ecdsa: {
generateKeyPair: (curve?: ECDSACurve) => Promise<{
privateKey: ArrayBuffer;
publicKey: ArrayBuffer;
}>;
importPrivateKey: (privateKey: ArrayBuffer | TypedArray | string, curve: ECDSACurve, extractable?: boolean) => Promise
;
importPublicKey: (publicKey: ArrayBuffer | TypedArray | string, curve: ECDSACurve, extractable?: boolean) => Promise;
sign: (privateKey: CryptoKey, data: ArrayBuffer | TypedArray | string, hash?: SHAFamily) => Promise;
verify: (publicKey: CryptoKey, { signature, data, hash, }: {
signature: ArrayBuffer | TypedArray | string;
data: ArrayBuffer | string;
hash?: SHAFamily;
}) => Promise;
exportKey: (key: CryptoKey, format: E) => Promise;
};
export { ecdsa };