Skip to content

v0.1.0

Compare
Choose a tag to compare
@ognus ognus released this 28 May 06:09
· 84 commits to master since this release

New small feature: currency as a symbol

Adding alternative way to specify currency: by symbol, so now you can either use 'bitcoin' or 'BTC'.

Breaking change for testnet addresses

Changing API, by moving testnet to separate parameter of validate method.

This will no longer work as expected:

WAValidator.validate('1KFzzGtDdnq5hrwxXGjwVnKzRbvf8WVxck', 'bitcoinTestnet');

Instead use:

WAValidator.validate('1KFzzGtDdnq5hrwxXGjwVnKzRbvf8WVxck', 'bitcoin', 'testnet');