/** * Verification methods on the various key formats. * Useful for identification and ensuring key is valid. * * Methods are named as is where: * is the key format to check. * * All methods take in Big-Endian strings and return boolean. */ /** * Verifies a NEP2. This merely verifies the format. It is unable to verify if it is has been tampered with. */ export declare function isNEP2(nep2: string): boolean; /** * Verifies a WIF using its checksum. */ export declare function isWIF(wif: string): boolean; /** * Checks if hexstring is a valid Private Key. Any hexstring of 64 chars is a valid private key. */ export declare function isPrivateKey(key: string): boolean; /** * Checks if hexstring is a valid Public Key. Accepts both encoded and unencoded forms. * @param key - encoded or unencoded public key * @param encoded - optional parameter to specify for a specific form. If this is omitted, this function will return true for both forms. If this parameter is provided, this function will only return true for the specific form. */ export declare function isPublicKey(key: string, encoded?: boolean): boolean; /** * Verifies if string is a scripthash. Any 20 byte hexstring is a valid scriptHash. */ export declare function isScriptHash(scriptHash: string): boolean; /** * Verifies an address using its checksum. Note that this does not check the address version to be equal to the one in the network. * If you wish to verify the exact address version, pass the version number to verifyAddressVersion. * * @param address - Base58 address * @param verifyAddressVersion - address version to verify against. If set, this will return false if the address version does not match. * * @example * isAddress("not an address"); // false * isAddress("NQ9NEvVrutLL6JDtUMKMrkEG6QpWNxgNBM"); // true * isAddress("ALq7AWrhAueN6mJNqk6FHJjnsEoPRytLdW"); // true * * isAddress("NQ9NEvVrutLL6JDtUMKMrkEG6QpWNxgNBM", 17); // false * isAddress("ALq7AWrhAueN6mJNqk6FHJjnsEoPRytLdW", 17); // true * * isAddress("NQ9NEvVrutLL6JDtUMKMrkEG6QpWNxgNBM", 35); // true * isAddress("ALq7AWrhAueN6mJNqk6FHJjnsEoPRytLdW", 35); // false */ export declare function isAddress(address: string, verifyAddressVersion?: number): boolean; //# sourceMappingURL=verify.d.ts.map