2015-12-18 22:53:31 -08:00
|
|
|
/**
|
2016-05-14 13:22:43 -07:00
|
|
|
* Javascript bitcoin library. Exposes the global environment.
|
2016-04-15 05:28:23 -07:00
|
|
|
* @module bcoin
|
2016-05-14 13:22:43 -07:00
|
|
|
* @see {Environment}
|
2016-04-15 05:28:23 -07:00
|
|
|
* @license
|
2015-12-18 22:53:31 -08:00
|
|
|
* Copyright (c) 2014-2015, Fedor Indutny (MIT License).
|
2016-04-06 18:20:03 -07:00
|
|
|
* Copyright (c) 2014-2016, Christopher Jeffrey (MIT License).
|
2015-12-18 22:53:31 -08:00
|
|
|
* https://github.com/indutny/bcoin
|
|
|
|
|
*/
|
|
|
|
|
|
2016-05-13 09:34:09 -07:00
|
|
|
var env = require('./bcoin/env');
|
2016-05-02 19:47:41 -07:00
|
|
|
var utils = require('./bcoin/utils');
|
|
|
|
|
var global = utils.global;
|
2016-05-13 09:23:57 -07:00
|
|
|
|
2016-05-14 13:22:43 -07:00
|
|
|
/*
|
|
|
|
|
* Expose bcoin globally in the
|
|
|
|
|
* browser. Necessary for workers.
|
2016-04-15 05:28:23 -07:00
|
|
|
*/
|
|
|
|
|
|
2016-05-14 13:22:43 -07:00
|
|
|
if (utils.isBrowser)
|
|
|
|
|
global.bcoin = env;
|
2016-05-13 09:34:09 -07:00
|
|
|
|
2016-05-14 13:22:43 -07:00
|
|
|
module.exports = env;
|