UNPKG

tnb-hd-wallet

Version:

A hd wallet that derives public and private keys from a 12 word mnemonic phrase with support

10 lines (9 loc) 359 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isValidHex = exports.hexRegex = exports.pathRegex = void 0; exports.pathRegex = new RegExp("^m(\\/[0-9]+')+$"); exports.hexRegex = new RegExp("^(0x)?[0-9a-fA-F]{1,}$"); const isValidHex = (hex) => { return exports.hexRegex.test(hex); }; exports.isValidHex = isValidHex;