Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

BCH (CashAddress) wallet validation

by olindo (Initiate)
on May 14, 2019 at 14:51 UTC ( #1233767=perlquestion: print w/replies, xml ) Need Help??

olindo has asked for the wisdom of the Perl Monks concerning the following question:

Oh glorious Monks, please hear my cry for help.

I am working on some projects that involves validating some cryptocoins wallets. For now I am able to validate BTC (Bitcoin) and ETH (Ethereum) wallets, but I'm stuck with BCH (Bitcoin Cash)

I found some example in other unworthy languages like PHP ( or JS (

I've started porting the JS example to Perl, but after "bs32_decode" I'm stuck at the "polymod" function, and I fear even the rest is too complicated for me

Does anyone have a BCH validator, or can help me finish mine?

Thank for your precious attention, wise Monks

Replies are listed 'Best First'.
Re: BCH (CashAddress) wallet validation
by Discipulus (Abbot) on May 14, 2019 at 17:11 UTC
    Hello olindo and welcome to the monastery!

    Knowning nothing of the matter I found Bitcoin address validation at rosettacode and this perl code you can find useful.


    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
      Yes infact I used that for BTC validation, however BCH is different and I can't reuse that code
Re: BCH (CashAddress) wallet validation
by Laurent_R (Canon) on May 14, 2019 at 15:40 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1233767]
Approved by Corion
Front-paged by haukex
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2019-05-25 05:59 GMT
Find Nodes?
    Voting Booth?
    Do you enjoy 3D movies?

    Results (151 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!