JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q51819F

NodeJS and browser JS library for Ethereum

Package Exports

  • ethereumjs-lib
  • ethereumjs-lib/browser/ecdsaOps.js
  • ethereumjs-lib/browser/sha3.js
  • ethereumjs-lib/lib/ecdsaOps.js
  • ethereumjs-lib/lib/networking.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ethereumjs-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SYNOPSIS Build Status

A Javascript library of core Ethereum functions as described in the Yellow Paper.

EXAMPLES

API

ethereumjs-lib provides the following.

  • Network - Networking protocol and peer managment
  • VM - The Ethereum vitural machine and state processing functions
  • Block Chain - Blockchain managment
  • Block - Block Schema definition and validation
  • Transaction - Transaction Schema definition and validation
  • Bloom - Bloom Filter
  • Account - Account Schema definition and validation
  • utils - Miscellaneous helper functions
  • rlp - Recusive Length Perfix serialization
  • Trie - Modified Merkle Patricia Tree

TESTING

npm test

Most of the tests are in described in the test repo To run the test run npm test. You can also run the tests directly by running ./bin/tester -a

The tester can take the following options
-a runs all the tests
-s runs all the state tests
-v runs all the VM tests
-r runs a VM tests given a string which defines the test
--vmtrace <filename> dumps a json VM trace to a file for VM and State tests

In addition you can select specific VM and State tests with the following options
--file run only one file in the test repo
--test needs to be used with the --file option. Specifies a test from a file to run.

######example usage run a the CallRecursiveContract test from the stInitCodeTest file
./bin/tester -s --file stInitCodeTest --test CallRecursiveContract --vmtrace "trace.json"

BROWSER

ethereumjs-lib can be used with browserify. For browser testing install testling npm install testling -g and run testling -u

CONTRIBUTIONS

Patches welcome! Contributors are listed in the package.json file. Please run the tests before opening a pull request and make sure that you are passing all of them.

If you would like to contribute, but don't know what to work on, check the issues list or ask on the forms or on IRC.

BUGS

When you find issues, please report them:

You can also look for null_radix in #ethereum-dev on irc://irc.freenode.net.

LISCENCE

GPL3