sthjs
JavaScript library for sending transactions from the client or server
Last updated 2 years ago by technolog .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sthjs 
SYNC missed versions from official npm registry.

Build Status

SmartHoldem JS Library

JavaScript library for sending SmartHoldem transactions from the client or server

Tests lib

npm test

Build documentation

npm build:docs

Build lib for browser

npm build:browserify

Clean browser

npm clean:browserify

Examples

On the client:

<script src="node_modules/sthjs/bundle.min.js"></script>

On the server:

var sth = require("sthjs");

To generate a public / private key pair from a given passphrase:

var keyz = sth.crypto.getKeys("pass phrase");

response keyz

{
publicKey: '022b903c7eae707b38e91be3952b2243910fff080b9d158884264f3c6394bd2a3e',
privateKey: ''
}

get private key:

console.log('privKey:'+keys.d.toBuffer().toString("hex"));

response

privKey:84d6b9b64dd6a2111e2616544e16e07580d590df9a8d5ce1d9dc5a168a1b1188

Current Tags

  • 0.2.3                                ...           latest (2 years ago)

3 Versions

  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (16)
Dev Dependencies (10)

Copyright 2014 - 2017 © taobao.org |