diff --git a/README.md b/README.md index a9185f06..6df13587 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/src/__tests__/index.test.ts b/src/__tests__/index.test.ts index 3612106b..0bf4f2ce 100644 --- a/src/__tests__/index.test.ts +++ b/src/__tests__/index.test.ts @@ -44,6 +44,13 @@ const vectors: Array = [ { text: 'AF8ekvSf6eiSBRspJjnfzK6d1EM6pnPq3G', hex: 'a914f8f5d99a9fc21aa676e74d15e7b8134557615bda87' }, ], }, + { + name: 'MONA', + coinType: 22, + passingVectors: [ + { text: 'MHxgS2XMXjeJ4if2PRRbWYcdwZPWfdwaDT', hex: '76a9146e5bb7226a337fe8307b4192ae5c3fab9fa9edf588ac' }, + ], + }, { name: 'ETH', coinType: 60, diff --git a/src/index.ts b/src/index.ts index 7482af6e..b35c3674 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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),