Skip to content

plopezlpz/bitcoinlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This project is a bitcoin library, it is the implementation of the exercises and the book Programming Bitcoin by Jimmy Song in JS.

Quick start

Run tests

npm run install
npm run test

Some tests are skipped since they are currently calling to the blockchain.info API, in order to run then, just remove the skip call.

Find circular dependencies for a file (not needed)

Node will just import an empty object when we try to import a file with a circular dependency, the below commands are useful to debug this kind of issues.

  1. Install madge globally (if not already installed)
    npm -g install madge
  2. Find circular dependencies for a file:
    madge -c src/transaction/Tx.js

VS Code Setup:

The launch config for debugging the tests .vscode/launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Mocha Tests",
      "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
      "args": [
        "--timeout",
        "999999",
        "--colors",
        "${workspaceFolder}/src/**/**spec.js"
      ],
      "internalConsoleOptions": "openOnSessionStart"
    }
  ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published