UNPKG

@kazeblockchain/kazejs

Version:

Javascript libraries for Kaze wallet

18 lines (12 loc) 766 B
/** Verifies a NEP2. This merely verifies the format. It is unable to verify if it is has been tampered with. */ export function isNEP2(nep2: 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