Bitcoin Forum
June 14, 2024, 03:54:58 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Validating altcoin addresses  (Read 1116 times)
techypaul (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
January 03, 2014, 12:56:11 AM
 #1

Hi,

Is there a standard way to validate altcoin addresses? By validate, I mean confirm the address entered is a valid address for the currency chosen, for example, if a user selected QuarkCoin from a drop down box and entered a ZetaCoin address, how can I check for that?


Thanks,
Paul.
sdp
Sr. Member
****
Offline Offline

Activity: 469
Merit: 281



View Profile WWW
January 03, 2014, 04:12:24 PM
 #2

Would you like to review the documentation I wrote for software that does that?  Show me an invalid QRK address and I have software will tell you it is not a QRK coin address.  Each address has a magic byte part, and a checksum part, and the part in the middle is derived from the public key but this part derived from the public key looks random, you can use this middle part for several coins.  Use the same private key for several coins (or all of your altcoins).

sdp


Coinsbank: Left money in their costodial wallet for my signature.  Then they kept the money.
techypaul (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
January 05, 2014, 10:00:44 AM
 #3

Hi sdp, I would love to if that is possible! Thank you for the information also.

Thanks,
Paul.
ryanralph
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 06, 2014, 02:14:16 PM
 #4

have been working on a library for people to use with node.js at https://github.com/ryanralph/altcoin-address. Currently it supports:
  • Bitcoin/BTC (bitcoin)
  • Litecoin/LTC (litecoin)
  • Peercoin/PPCoin/PPC (peercoin)
  • Dogecoin/DOGE (dogecoin)
  • Freicoin/FRC (freicoin)
  • Protoshares/PTS (protoshares)
  • Megacoin/MEC (megacoin)
  • Primecoin/XPM (primecoin

I'd love for people to send me a pull request for any coins you want support for! (would be great if you included tests as well)

Ryan
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!