Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 774 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 774 Bytes

bech32-js

Javascript validation for Bech32 BIP173 bitcoin addresses.

Example

<script src="bech32-js.min.js"></script>
var result = checkbech32('abcdef1qpzry9x8gf2tvdw0s3jn54khce6mua7lmqqqxw')
// => 'OK'
var result = checkbech32('wrongabcdef1qpzry9x8gf2tvdw0s3jnkhce6muawrong')
// => 'KO'

Credits

License MIT