
Security News
minimatch Patches 3 High-Severity ReDoS Vulnerabilities
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.
groestlcoin-address-validation
Advanced tools
Validate any Groestlcoin address - Bech32, P2SH and P2PKH
Validate Groestlcoin addresses - Bech32, P2PKH and P2SH! Available for ES6 and Node.js.
validate('bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4');
{
bech32: true,
network: 'mainnet',
address: 'bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4',
type: 'p2wpkh'
}
Add groestlcoin-address-validation to your Javascript project dependencies using Yarn:
yarn add groestlcoin-address-validation
Or NPM:
npm install groestlcoin-address-validation --save
Import using ES6:
import validate from 'groestlcoin-address-validation';
Or AMD:
var validate = require('groestlcoin-address-validation');
Validation is done using the validate(address) function.
validate('17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem')
{
address: '17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem',
type: 'p2pkh',
network: 'mainnet',
bech32: false
}
validate('bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4');
{
bech32: true,
network: 'mainnet',
address: 'bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4',
type: 'p2wpkh'
}
validate(address) will return false for any invalid address, regardless of the address type:
validate('bc1qw508d6qejxtdg4y5r3zrrvary0c5xw7kv8f3t4')
false
This library supports 3 different types of networks: mainnet, testnet and regtest.
Note: When dealing with traditional (non-bech32) addresses, all
regtestaddresses will be recognized astestnetaddresses.
Forked from https://github.com/ruigomeseu/bitcoin-address-validation
The MIT License (MIT). Please see LICENSE file for more information.
FAQs
Validate any Groestlcoin address - Bech32, P2SH and P2PKH
We found that groestlcoin-address-validation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.

Research
/Security News
Socket uncovered 26 malicious npm packages tied to North Korea's Contagious Interview campaign, retrieving a live 9-module infostealer and RAT from the adversary's C2.

Research
An impersonated golang.org/x/crypto clone exfiltrates passwords, executes a remote shell stager, and delivers a Rekoobe backdoor on Linux.