1
Parfait 1 week ago

Origin of the bitcoin library used in wallet.js?

I would just like to figure out where the bitcoin library used in the following statement comes from? Can someone help?

bitcoin.createWallet(network).then(function(wallet) {

        $(‘#new-wallet-form’)[0].reset();
        $(‘#new-wallet’).hide();
        $(‘#output-area’).html(generateNewWalletInfo());
    });
  1. 1
    Parfait Cyriaque 1 week ago
    Aha, got it 🙂

    it’s specified here and ends up in the bundle.js, right?

    gulp.task(‘default’, () => {

        browserify(‘./src/simplewallet.js’, {standalone: ‘bitcoin’, debug: true})
        .transform(babelify, {presets: [‘es2015’]})
        .bundle()
        .pipe(source(‘bundle.js’))
        .pipe(gulp.dest(‘static/scripts’))
    });