cryptojs
a simple js tool for crypto currenty
## basic module ##
- base58
- eckey
- coinkey
## Usage
npm install cryptojstool -s
// Base58 const Base58 = Base58; let hex = "61"; let buf = Buffer; let result = Base58; //"2g" let toHex = Base58; // "61" // Base58Check const Base58Check = Base58Check; let string = "1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i"; let payload = "0065a16059864a2fdbc7c99a4723a8395bc6f188eb"; let actual = Base58Check; // actual: "0065a16059864a2fdbc7c99a4723a8395bc6f188eb" let buf = Buffer; let a = Base58Check; // a: "1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i" // CoinKey const CoinKey = CoinKey; let privateKey = secureRandom let ck = privateKey; privateKey = "1184cd2cdd640ca42cfc3a091c51d549b2f016d454b2774019c2b2d2e08529fd"; let versions = "private": 176 "public": 48; let ck1 = Buffer versions; ck1compressed = false; let privateWif = "5Hx15HFGyep2CfPxsJKe2fXJsCVn5DEiyoeGGF6JZjGbTRnqfiD"; let ck2 = CoinKey;
## Environment ##
- node 7.0 or above
## How to run ##
- git clone https://github.com/jasoncodingnow/cryptojstool.git
- cd cryptojstool
- npm install
- npm test