Getting your Trinity Audio player ready...
|
Bitcoin SV now has a “pure and powerful” JavaScript library, courtesy of Money Button.
bsv, a library for cryptography, key management and transaction building for Bitcoin SV, was introduced early this week, marking yet another milestone for the only remaining cryptocurrency that follows the original Satoshi Vision for Bitcoin.
Introducing bsv: A Javascript Bitcoin Library for Bitcoin SV https://t.co/oE6mS2v5cY
— MoneyButton and MBX (@money_button) December 11, 2018
In a blog post, Money Button explained that since BitPay doesn’t maintain a JavaScript library for Bitcoin SV, it “decided to maintain the library ourselves for the Bitcoin SV community.” On GitHub, developer team noted: “The decentralized nature of the Bitcoin network allows for highly resilient Bitcoin infrastructure, and the developer community needs reliable open-source tools to implement Bitcoin apps and services.
Bsv is based on BitPay’s bitcore-lib-cash, except it defaults to the original address format. This is in line with Money Button’s recent decision to dump the CashAddr address format, reverting back to the original format that starts with a 1. According to the company’s CEO, Ryan X. Charles, “Many hardware wallets and exchanges never adopted cashaddr, and although it’s irritatingly the same as BTC, at least we will have consistency between wallets.”
Installing the bsv library is easy: you can use “npm install bsv” or clone from GitHub.
I'll soon be transitioning all my projects to use this library. A great name too, whoever came up with it! https://t.co/Kk1UheoeSv
— _unwriter (@_unwriter) December 11, 2018
Aside from bsv, Money Button also launched the bsv-mnemonic tool for producing and managing BIP 39 mnemonics that are commonly used by Bitcoin SV wallets. Bsv-mnemonic can be found on npm or cloned from GitHub.
The bsv JavaScript library and bsv-mnemonic tool retain an equivalent interface to BitPay’s bitcore-lib-cash and bitcore-mnemonic-cash. According to Money Button, “Because the API for Bitcoin SV itself is intended to remain stable, it is unlikely we will ever need to change the API for these libraries. The only plans we have to update these libraries at present are to fix the linting, fix the filenames, fix the documentation, and add in the missing opcodes for the script interpreter.”