bitcoin-address-validation | Validate any Bitcoin address - Bech32 , P2SH and P2PKH | Regex library
kandi X-RAY | bitcoin-address-validation Summary
kandi X-RAY | bitcoin-address-validation Summary
Validate any Bitcoin address - Bech32, P2SH and P2PKH
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bitcoin-address-validation
bitcoin-address-validation Key Features
bitcoin-address-validation Examples and Code Snippets
Community Discussions
Trending Discussions on bitcoin-address-validation
QUESTION
I've built a JS library to validate Bitcoin address and detect their type and network (mainnet, testnet, regtest).
For bech32 addresses, I can determine if they're for mainnet, testnet or regtest by looking at the prefix (bc, tb or bcrt).
For regular addresses, I can match them to mainnet or testnet only.
This is what I'm using to match regular addresses, based on the Address prefixes wiki list:
...ANSWER
Answered 2019-Oct-14 at 01:17Regtest and Testnet legacy addresses are equal.
To verify:
When you import a regtest private key to testnet wallet, the address will be the same
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bitcoin-address-validation
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page