2
Parfait
Parfait

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());
    });

Best answer

Parfait
Parfait Cyriaque
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’))
});

Answers

  1. 2
    Charlotte Mellor
    In theory, this is it