Find Jobs
Hire Freelancers

Validation for Bitcoin Cash and Monero in Perl 5

€8-30 EUR

In Progress
Posted over 4 years ago

€8-30 EUR

Paid on delivery
Given a XMR or BCH address, I need a function that takes that address as input and returns true if the address is valid or false if it is not. Simple regex would *not* work, I need offline crypto validation. I don't need to know if the address have ever been used or created. I don't need to know if the address has funds in it. If you need to use Perl libraries, ideally if they are included as a package in Debian 9/10 that's ok. Compiling libraries from CPAN is to be avoided. Digest::Keccak is available. Skeleton of the program would be: ---- #!/usr/bin/perl use strict; use warnings; sub is_valid_xmr { ... } sub is_valid_bch { ... } my $valid_xmr = "44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A"; my $invalid_xmr = "44ABFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A"; # cashaddr my $valid_bch = "qrm73ws0e4hq0u890v33u7smcd3qjy7yaspz9v42qh"; my $invalid_bch = "qrm73ws0e4hq1u890v33u7smcd3qjy7yaspz9v42qh"; # Will print "Valid XMR address" if (is_valid_xmr($valid_xmr)) { print "Valid XMR address"; } else { print "Invalid XMR address"; } # Will print "Invalid XMR address" if (is_valid_xmr($invalid_xmr)) { print "Valid XMR address"; } else { print "Invalid XMR address"; } # Will print "Valid BCH address" if (is_valid_bch($valid_bch)) { print "Valid BCH address"; } else { print "Invalid BCH address"; } # Will print "Invalid BCH address" if (is_valid_bch($invalid_bch)) { print "Valid BCH address"; } else { print "Invalid BCH address"; }
Project ID: 23577866

About the project

3 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average €22 EUR for this job
User Avatar
Hi there, I can validate bch and xmr addresses using python, not perl. As far as bch addresses are concerned I will assume it has a bitcoincash: prefix, since it's necessary for hashing the checksum. I will also use open source software to implement both. A couple of extra python packages will need to be installed, which are available in debian. As long as you are ok with all the above, I will be very happy to do this for you.
€8 EUR in 1 day
0.0 (1 review)
0.0
0.0

About the client

Flag of ITALY
Trieste, Italy
5.0
1
Payment method verified
Member since Jan 26, 2020

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.