Socket
Socket
Sign inDemoInstall

@swyftx/api-crypto-address-validator

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swyftx/api-crypto-address-validator - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

src/xtz_validator.js

0

karma.conf.js

@@ -0,0 +0,0 @@ // Karma configuration

6

package.json

@@ -40,4 +40,4 @@ {

"BitcoinCash",
"bch",
"bcc",
"bch",
"BitcoinGold",

@@ -203,2 +203,4 @@ "btg",

"usdt",
"Tezos",
"XTZ",
"theta",

@@ -240,3 +242,3 @@ "Tron",

],
"version": "1.9.0",
"version": "1.10.0",
"author": "Swyftx",

@@ -243,0 +245,0 @@ "publishConfig": {

@@ -52,4 +52,4 @@ # crypto-address-validator

* Bitcoin Diamond/bcd `'Bitcoin Diamond'` or `'bcd'`
* BitcoinCash/bch `'BitcoinCash'` or `'bch'`
* BitcoinCash/bcc `'BitcoinCash'` or `'bcc'`
* BitcoinCash/bch `'BitcoinCash'` or `'bch'`
* BitcoinGold/btg `'BitcoinGold'` or `'btg'`

@@ -91,2 +91,3 @@ * BitcoinPrivate/btcp `'BitcoinPrivate'` or `'btcp'`

* ICON/icx `'ICON'` or `'icx'`
* iExec RLC/RLC `'iExec RLC'` or `'RLC'`
* iExec RLC/rlc `'iExec RLC'` or `'rlc'`

@@ -144,2 +145,3 @@ * Internet of Services/IOST `'Internet of Services'` or `'IOST'`

* Tether/usdt `'Tether'` or `'usdt'`
* Tezos/XTZ `'Tezos'` or `'XTZ'`
* THETA/theta `'THETA'` or `'theta'`

@@ -146,0 +148,0 @@ * Tron/trx `'Tron'` or `'trx'`

@@ -0,0 +0,0 @@ var base58 = require('./crypto/base58')

@@ -0,0 +0,0 @@ const ardorRegex = new RegExp('^ARDOR(-[A-Z0-9]{4}){3}(-[A-Z0-9]{5})$')

@@ -0,0 +0,0 @@ var utils = require('./crypto/utils')

@@ -0,0 +0,0 @@ function isValidLiskAddress (address, currency, networkType) {

@@ -0,0 +0,0 @@ var base58 = require('./crypto/base58')

@@ -0,0 +0,0 @@ var regexp = new RegExp('^(bnb)([a-z0-9]{39})$') // bnb + 39 a-z0-9

@@ -0,0 +0,0 @@ function isValidBTSAddress (address, currency, networkType) {

@@ -0,0 +0,0 @@ var cbor = require('cbor-js')

@@ -0,0 +0,0 @@ // Base58 encoding/decoding

@@ -0,0 +0,0 @@ // Copyright (c) 2017 Pieter Wuille

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ 'use strict'

@@ -0,0 +0,0 @@ 'use strict'

@@ -0,0 +0,0 @@ var JSBigInt = require('./biginteger')['JSBigInt']

@@ -0,0 +0,0 @@ // Copyright (c) 2017 Pieter Wuille

@@ -0,0 +0,0 @@ /* global self */

@@ -0,0 +0,0 @@ var JsSHA = require('jssha/src/sha256')

@@ -24,2 +24,3 @@ const XRPValidator = require('./ripple_validator')

const IOSTValidator = require('./iost_validator')
const XTZValidator = require('./xtz_validator')

@@ -584,2 +585,10 @@ // defines P2PKH and P2SH address types for standard (prod) and testnet networks

validator: ETHValidator
}, {
name: 'iExec RLC',
symbol: 'RLC',
validator: ETHValidator
}, {
name: 'Tezos',
symbol: 'XTZ',
validator: XTZValidator
}]

@@ -586,0 +595,0 @@

@@ -0,0 +0,0 @@ function isValidEOSAddress (address, currency, networkType) {

@@ -0,0 +0,0 @@ var cryptoUtils = require('./crypto/utils')

@@ -0,0 +0,0 @@ function isValidICXAddress (address, currency, networkType) {

@@ -0,0 +0,0 @@ const iostRegex = new RegExp('^[a-z0-9_]{5,11}$')

@@ -0,0 +0,0 @@ var IOTA = require('@iota/validators')

@@ -0,0 +0,0 @@ function isValidLiskAddress (address, currency, networkType) {

@@ -0,0 +0,0 @@ const baseX = require('base-x')

@@ -0,0 +0,0 @@ var cryptoUtils = require('./crypto/utils')

@@ -0,0 +0,0 @@ var cryptoUtils = require('./crypto/utils')

@@ -0,0 +0,0 @@ var ALLOWED_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'

@@ -0,0 +0,0 @@ const base58 = require('./crypto/base58')

@@ -7,3 +7,3 @@ var cryptoUtils = require('./crypto/utils')

var codec = baseX(ALLOWED_CHARS)
var regexp = new RegExp('^r[' + ALLOWED_CHARS + ']{27,35}$')
var regexp = new RegExp('^r[' + ALLOWED_CHARS + ']{24,34}$')

@@ -10,0 +10,0 @@ module.exports = {

@@ -0,0 +0,0 @@ function isValidSCAddress (address, currency, networkType) {

@@ -0,0 +0,0 @@ const accountRegex = new RegExp('^[a-z0-9-.]{3,}$')

@@ -0,0 +0,0 @@ var currencies = require('./currencies')

@@ -0,0 +0,0 @@ var utils = require('./crypto/utils')

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc