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 
A Javascript library of core Ethereum functions as described in the Yellow Paper.
EXAMPLES
- Exploring the state trie
- Creating contracts and verifying transaction
- How to run contracts and create stack traces
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.
- issues
- task tracker
- forum
- #ethereum-dev on irc.freenode.net
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