Package Exports
- ethereumjs-lib
- ethereumjs-lib/browser/bignum.js
- ethereumjs-lib/browser/ecdsaOps.js
- ethereumjs-lib/browser/sha3.js
- ethereumjs-lib/lib/ecdsaOps.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
ethereumjs-lib 
A Javascript library of core Ethereum functions.
####Install
npm install ethereumjs-lib
Node Usage
var Network = require('ethereumjs-lib').Network;
//create a new tcp server instance using network version 25
var network = new Network({
version: 25
});
//start listening for incoming connects
network.listen(30303, '0.0.0.0');
Browser Usage
First ethereumjs-lib
can be used with browserify
. But you can also produce a standlone file by running npm run-script compile
which then can be used like this var Ethereum = include('ethereumjs-lib')
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
- Account - Account Schema definition and validation
- utils - Miscellaneous helper functions
- rlp - Recusive Length Perfix serialization
- Trie - Modified Merkle Patricia Tree
####Testing To run the tests, make sure you clone the tests repository from github.com/ethereum to tests as a sibling to ethereumjs-lib.
Tests use mocha
npm test
For browser testing install testling npm install testling -g
and runtestling -u
####License GPL3