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.

18 lines (12 loc) 766 B
/** Verifies a KEP2. This merely verifies the format. It is unable to verify if it is has been tampered with. */ export function isKEP2(kep2: string): boolean /** Verifies a WIF using its checksum. */ export function isWIF(wif: string): boolean /** Checks if hexstring is a valid Private Key. Any hexstring of 64 chars is a valid private key. */ export function isPrivateKey(key: string): boolean /** Checks if hexstring is a valid Public Key. Accepts both encoded and unencoded forms. */ export function isPublicKey(key: string, encoded?: boolean): boolean /** Verifies if hexstring is a scripthash. */ export function isScriptHash(scriptHash: string): boolean /** Verifies an address using its checksum. */ export function isAddress(address: string): boolean