Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ryanralph/altcoin-address
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanralph committed Nov 4, 2014
2 parents a036049 + 9fbe59a commit 170e832
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Functions for working with altcoin addresses, forked from [DefunctZombie](https:
* Litecoin/LTC (litecoin)
* Peercoin/PPCoin/PPC (peercoin)
* Dogecoin/DOGE (dogecoin)
* BeaverCoin/BVC (beavercoin)
* Freicoin/FRC (freicoin)
* Protoshares/PTS (protoshares)
* Megacoin/MEC (megacoin)
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ var address_types = {
peercoinTestnet: '6f', //111 Decimal mn prefix
dogecoin: '1e', // 30 Decimal D prefix
dogecoinTestnet: '71', //113 Decimal n prefix
beavercoin: '19', // 25 Decimal B prefix
beavercoinTestnet: '6f', //111 Decimal mn prefix
freicoin: '00', // 0 Decimal 1 prefix
freicoinTestnet: '6f', //111 Decimal mn prefix
protoshares: '38', // 56 Decimal P prefix
Expand All @@ -38,6 +40,8 @@ var p2sh_types = {
peercoinTestnet: 'c4', //196 Decimal 2 prefix
dogecoin: '16', //22 Decimal 9A prefix
dogecoinTestnet: 'c4', //196 Decimal 2 prefix
beavercoin: '05', // 5 Decimal 3 prefix
beavercoinTestnet: 'c4', //196 Decimal 2 prefix
freicoin: '05', // 5 Decimal 3 prefix
freicoinTestnet: 'c4', //196 Decimal 2 prefix
protoshares: '05', // 5 Decimal 3 prefix
Expand Down
2 changes: 2 additions & 0 deletions test/invalid.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ test('invalid', function() {
commontests('peercoin');
//----------------DOGE ADDRESSES-------------------------------
commontests('dogecoin');
//----------------BVC ADDRESSES-------------------------------
commontests('beavercoin');
//----------------FRC ADDRESSES--------------------------------
commontests('freicoin');
//----------------PTS ADDRESSES--------------------------------
Expand Down
10 changes: 10 additions & 0 deletions test/valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ test('valid', function() {
validate('A7JjzK9k9x5b2MkkQzqt91WZsuu7wTu6iS', 'dogecoin');
validate('2MxKEf2su6FGAUfCEAHreGFQvEYrfYNHvL7', 'dogecoinTestnet');

//----------------BVC ADDRESSES--------------------------------
validate('BPPtB4EpPi5wCaGXZuNyKQgng8ya579qUh', 'beavercoin');
validate('BC1LLYoE4mTCHTJhVYvLGxhRTwAHyWTQ49', 'beavercoin');
validate('BBuyeg2vjtyFdMNj3LTxuVra4wJMKVAY9C', 'beavercoin');
validate('mzBc4XEFSdzCDcTxAgf6EZXgsZWpztRhef', 'beavercoinTestnet');

// p2sh addresses
validate('3NJZLcZEEYBpxYEUGewU4knsQRn1WM5Fkt', 'beavercoin');
validate('2MxKEf2su6FGAUfCEAHreGFQvEYrfYNHvL7', 'beavercoinTestnet');

//----------------FRC ADDRESSES--------------------------------
validate('1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa', 'freicoin');
validate('1oNLrsHnBcR6dpaBpwz3LSwutbUNkNSjs', 'freicoin');
Expand Down

0 comments on commit 170e832

Please sign in to comment.