You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
615 B
26 lines
615 B
"use strict"; |
|
|
|
Object.defineProperty(exports, "__esModule", { |
|
value: true |
|
}); |
|
exports.default = isBase58; |
|
|
|
var _assertString = _interopRequireDefault(require("./util/assertString")); |
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
|
|
|
// Accepted chars - 123456789ABCDEFGH JKLMN PQRSTUVWXYZabcdefghijk mnopqrstuvwxyz |
|
var base58Reg = /^[A-HJ-NP-Za-km-z1-9]*$/; |
|
|
|
function isBase58(str) { |
|
(0, _assertString.default)(str); |
|
|
|
if (base58Reg.test(str)) { |
|
return true; |
|
} |
|
|
|
return false; |
|
} |
|
|
|
module.exports = exports.default; |
|
module.exports.default = exports.default; |