UNPKG

@kazeblockchain/krypton-js

Version:

Javascript libraries for kaze wallet using https://github.com/kazechainio/kazewallet/blob/master/js/wallet.js as the original source.

14 lines (9 loc) 751 B
import { ScryptParams } from './core'; /** Encrypts a WIF key using a given keyphrase under KEP-2 Standard. */ export function encrypt(wifKey: string, keyphrase: string, scryptParams?: ScryptParams): string /** Encrypts a WIF key using a given keyphrase under KEP-2 Standard. */ export function decrypt(encryptedKey: string, keyphrase: string, scryptParams?: ScryptParams): string /** Decrypts an encrypted key using a given keyphrase under KEP-2 Standard. */ export function encryptAsync(wifKey: string, keyphrase: string, scryptParams?: ScryptParams): string /** Decrypts an encrypted key using a given keyphrase under KEP-2 Standard. */ export function decryptAsync(encryptedKey: string, keyphrase: string, scryptParams?: ScryptParams): string