Skip to content

Commit

Permalink
Add MONA support
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Oct 22, 2019
1 parent c92a78d commit a3eff58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ This library currently supports the following cryptocurrencies and address forma
- BTC (base58check P2PKH and P2SH, and bech32 segwit)
- LTC (base58check P2PHK and P2SH, and bech32 segwit)
- DOGE (base58check P2PKH and P2SH)
- MONA (base58check P2PKH and P2SH)
- ETH (checksummed-hex)
- ETC (checksummed-hex)
- RSK (checksummed-hex)
Expand Down
7 changes: 7 additions & 0 deletions src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ const vectors: Array<TestVector> = [
{ text: 'AF8ekvSf6eiSBRspJjnfzK6d1EM6pnPq3G', hex: 'a914f8f5d99a9fc21aa676e74d15e7b8134557615bda87' },
],
},
{
name: 'MONA',
coinType: 22,
passingVectors: [
{ text: 'MHxgS2XMXjeJ4if2PRRbWYcdwZPWfdwaDT', hex: '76a9146e5bb7226a337fe8307b4192ae5c3fab9fa9edf588ac' },
],
},
{
name: 'ETH',
coinType: 60,
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ const formats: IFormat[] = [
bitcoinChain('BTC', 0, 'bc', [0x00], [0x05]),
bitcoinChain('LTC', 2, 'ltc', [0x30], [0x32, 0x05]),
base58Chain('DOGE', 3, [0x1e], [0x16]),
base58Chain('MONA', 22, [0x32], [0x05]),
hexChecksumChain('ETH', 60),
hexChecksumChain('ETC', 61),
hexChecksumChain('RSK', 137),
Expand Down

0 comments on commit a3eff58

Please sign in to comment.