diff --git a/Gruntfile.js b/Gruntfile.js
index 32d0f9d9d..1aabd1672 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -15,7 +15,10 @@ module.exports = function(grunt) {
dest: 'browser/bundle.js',
options: {
debug: true,
- alias: ['browserify-bignum/bignumber.js:bignum'],
+ alias: [
+ 'browserify-bignum/bignumber.js:bignum',
+ 'browserify-buffertools/buffertools.js:buffertools'
+ ],
standalone: 'bitcore',
}
},
diff --git a/README.md b/README.md
index e7640cc0f..20614747b 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,7 @@ Bitcore is still under heavy development and not quite ready for "drop-in" produ
#Contributing
Bitcore needs some developer love. Please send pull requests for bug fixes, code optimization, and ideas for improvement.
+#Browser support
Work to enable Bitcore for use in the browser is ongoing. To build bitcore for the browser:
```
npm install -g grunt-cli
diff --git a/bitcore.js b/bitcore.js
index c6c9d94c2..145ee3934 100644
--- a/bitcore.js
+++ b/bitcore.js
@@ -10,6 +10,7 @@ module.exports.VersionedData = require('./util/VersionedData');
module.exports.Address = require('./Address');
module.exports.config = require('./config');
module.exports.log = require('./util/log');
+module.exports.networks = require('./networks');
module.exports.Opcode = require('./Opcode');
module.exports.util = require('./util/util');
module.exports.Script = require('./Script');
@@ -19,7 +20,6 @@ module.exports.Peer = require('./Peer');
module.exports.Block = require('./Block');
module.exports.Connection = require('./Connection');
module.exports.ScriptInterpreter = require('./ScriptInterpreter');
-module.exports.networks = require('./networks');
if (typeof process.versions === 'undefined') {
diff --git a/package.json b/package.json
index b2f5510f5..c423586ca 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,8 @@
"buffers": "=0.1.1",
"buffertools": "~2.0.1",
"mocha": ">=1.15.1",
- "browserify-bignum": "git://github.com/maraoz/browserify-bignum.git"
+ "browserify-bignum": "git://github.com/maraoz/browserify-bignum.git",
+ "browserify-buffertools": "~1.0.2"
},
"devDependencies": {
"grunt-contrib-watch": "~0.5.3",
diff --git a/test/index.html b/test/index.html
index 8cf9a0ff7..008a49c7c 100644
--- a/test/index.html
+++ b/test/index.html
@@ -22,6 +22,11 @@
+
+
+
+
+