<p>From <a href="https://bitcoinjs.github.io/bitcoinjs-lib/index.html#md:browser" rel="nofollow noreferrer">bitcoinlib-js documentation</a>:</p>
<blockquote>
<p>The recommended method of using bitcoinjs-lib in your browser is
through browserify.</p>
</blockquote>
<p>like this:</p>
<pre><code>$ npm install bitcoinjs-lib browserify
$ npx browserify --standalone bitcoin -o bitcoinjs-lib.js &lt;&lt;&lt; &quot;module.exports = 
require('bitcoinjs-lib');&quot;
</code></pre>
<p>and then compare it with <a href="https://bitcoincore.tech/apps/bitcoinjs-ui/lib/bitcoinjs-lib.js" rel="nofollow noreferrer">https://bitcoincore.tech/apps/bitcoinjs-ui/lib/bitcoinjs-lib.js</a></p>

CC BY-SA 4.0
2024-08-20T12:51:21.797Z
2024-08-20T12:51:21.797Z
qpaycm
<p>As @paulmillr stated:</p>
<blockquote>
<p>If your goal is absolute security, don't use any JS lib — including
bindings to native ones. Use low-level libraries &amp; languages.</p>
</blockquote>

CC BY-SA 4.0
2024-08-20T16:32:37.970Z
2024-08-20T16:32:37.970Z
qpaycm
<p>There's a <a href="https://bitcoincore.tech/apps/bitcoinjs-ui/lib/bitcoinjs-lib.js" rel="nofollow noreferrer">bitcoin-lib.js</a> at bitcoincore.tech website, but from the code it is not clear which version is it? Master-branch? Stable?</p>

<bitcoinjs>
Is it ok to use bitcoin-lib.js from bitcoincore.tech for production?
qpaycm
# Is it ok to use bitcoin-lib.js from bitcoincore.tech for production?

(Asked by: username_0 on 2024-08-19)

There's a [bitcoin-lib.js](https://bitcoincore.tech/apps/bitcoinjs-ui/lib/bitcoinjs-lib.js) at bitcoincore.tech website, but from the code it is not clear which version is it? Master-branch? Stable?

**Tags:** bitcoinjs


---

## 2 answers

### Answer by username_0 on 2024-08-20. Score: 0

From [bitcoinlib-js documentation](https://bitcoinjs.github.io/bitcoinjs-lib/index.html#md:browser):

> The recommended method of using bitcoinjs-lib in your browser is
> through browserify.

like this:

```
$ npm install bitcoinjs-lib browserify
$ npx browserify --standalone bitcoin -o bitcoinjs-lib.js <<< "module.exports = 
require('bitcoinjs-lib');"

```

and then compare it with <https://bitcoincore.tech/apps/bitcoinjs-ui/lib/bitcoinjs-lib.js>


---

### Answer by username_0 on 2024-08-20. Score: 0

As @paulmillr stated:

> If your goal is absolute security, don't use any JS lib — including
> bindings to native ones. Use low-level libraries & languages.


---

