diff --git a/bitcore.js b/bitcore.js index 9e755a3..c6db1fb 100644 --- a/bitcore.js +++ b/bitcore.js @@ -30,7 +30,8 @@ requireWhenAccessed('Peer', './Peer'); requireWhenAccessed('Block', './Block'); requireWhenAccessed('ScriptInterpreter', './ScriptInterpreter'); requireWhenAccessed('Bloom', './Bloom'); -module.exports.KeyModule = require('./Key'); +//module.exports.KeyModule = require('./Key'); +requireWhenAccessed('KeyModule', './Key'); requireWhenAccessed('SINKey', './SINKey'); requireWhenAccessed('SIN', './SIN'); requireWhenAccessed('PrivateKey', './PrivateKey'); diff --git a/browser/browserify.js b/browser/browserify.js index d1b627f..87b3415 100644 --- a/browser/browserify.js +++ b/browser/browserify.js @@ -35,6 +35,7 @@ var modules = [ 'PeerManager', 'PrivateKey', 'RpcClient', + 'Key', 'SIN', 'SINKey', 'Script', @@ -60,7 +61,6 @@ b.require('browserify-buffertools/buffertools.js', {expose:'buffertools'}); b.require('./bitcore', {expose: 'bitcore'}); b.require('buffer', {expose: 'buffer'}); b.require('base58-native'); -b.require('./Key.js', {expose: 'KeyModule'}); b.require('./util/log'); b.require('./util/util'); b.require('./util/EncodedData');