JSPM

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

NodeJS and browser JS library for Ethereum

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 Build Status

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

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 run
testling -u

####License GPL3