Comments (5)
That is because bech32 addresses are only currently supported for bitcoin.
See this line here:
https://github.com/christsim/multicoin-address-validator/blob/master/src/crypto/segwit_addr.js#L74
Ideally, the hrp for each coin should be specified in the src/currencies.js
file.
from multicoin-address-validator.
We're also facing this issue.
from multicoin-address-validator.
@HashEngineering @sarahakhtar -- facing the same issue, and came to same root cause. @christsim are you open to accepting a PR for this?
from multicoin-address-validator.
@HashEngineering @sarahakhtar -- facing the same issue, and came to same root cause. @christsim are you open to accepting a PR for this?
I'm happy to accept a PR for this as long as it's pretty simple and doesn't include any unnecessary libraries.
None of my user's have complained about this yet, but I guess none of them are sending to segwit ltc addresses.
from multicoin-address-validator.
@christsim thank you for being open to a PR. I have made the requisite changes here: #22 .
I tried to keep the changes minimal, and follow the pattern already in the code. That being said, there is some opportunity to use babel to make the code more modern.
from multicoin-address-validator.
Related Issues (20)
- add new crypto
- Add lightning network
- KSM validation, and a bug.
- EOS premium addresses
- Don't work validation some crypto address - BNB and USDT(TRC20) HOT 2
- new feature request: make function available to add a currency definition
- Contribution Access HOT 1
- Buffer is not defined HOT 6
- "Missing validator for currency" (AVAX, DOT, SOL)
- Fail to validate test addresses for cardano (network type is set to 'both')
- Failure to validate Muxed(Multiplexed) addresses for stellar network
- Failure to validate BTG(bitCoin-gold) addresses
- USDT not working correctly HOT 2
- Support Aptos
- USDT(Trc20) Validation HOT 2
- a package using terser as dependency is not passing jit tests
- add atom
- i am able to validate bitcoin address to USDT ERC20 HOT 1
- DOT not validating correctly
- Tron testnet address validation is not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multicoin-address-validator.