better-near-auth
Version:
Sign in with NEAR (SIWN) plugin for Better Auth
9 lines • 472 B
TypeScript
export declare function bytesToBase64(bytes: Uint8Array): string;
export declare function bytesToHex(bytes: Uint8Array): string;
export declare function hexToBytes(hex: string): Uint8Array;
export declare function encryptPrivateKey(privateKey: Uint8Array, secret: string): Promise<{
encrypted: string;
iv: string;
}>;
export declare function decryptPrivateKey(encrypted: string, iv: string, secret: string): Promise<Uint8Array>;
//# sourceMappingURL=utils.d.ts.map