Bitcore for browsers

#1

Is there a read use bitcore.min.js available for download for local browser use ?

0 Likes

(T Rhode) #2

Yes there is - use

bower install bitcore 

then access it at

‘bower_components/bitcore/bitcore.min.js’

2 Likes

(Manuel Araoz) #3

Yes. If you want to build the browser bundle manually, you can:

sudo npm i -g gulp
gulp browser

and check bitcore.js and bitcore.min.js

0 Likes

(Manuel Araoz) #4

In case it helps, you can check the browser examples I’m writing here: https://github.com/maraoz/bitcore-submodule-examples

0 Likes

#5

Thanks. Examples are always good :smile:

Specifically, what I am looking for is some straight forward, ready to run samples for

  1. generating a mnemonic seed
  2. deriving the bip32 private keys from the seed
  3. access/managing the private keys
  4. using them for signing raw transactions
0 Likes

(Priestc) #6

The problem with this is that you have to know how to use Bower and NPM to get bitcore this way. To those of us who only do javascript in the browser, we have to learn an extra thing in order to use bitcore. For instance, on ubuntu, its not just a simple “apt-get install bower” to get bower up and running… For a Node newbie like me it’ll take me 5 hours to get to the point where I get a browser build of bitcore running. A simple browser bundle download on the main bitcore page will help immensely.

0 Likes

(Braydon Fuller) #7

BTW: There are builds for the browser in releases: https://github.com/bitpay/bitcore-lib/commit/00b693d658cd1a8d9c4f68b0e587b60b298b79cb

Though using bower should help once it’s setup.

0 Likes