sps-client
v1.0.3
Published
Browser-compatible client for Secure Polling System.
Downloads
1
Readme
SPS Client
This is a Node.js client for Secure Polling System. Works in the browser with help from browserify.
npm install sps-client
Example
var SPSClient = require('sps-client')
var client = SPSClient()
client.generateKeypair()
var msg = 'I love ice cream'
var regSig = 'iamregistrar'
client.screed(msg, regSig, function (err, screed) {
if (err) throw err
console.log(screed)
})
client.generateKeypair()
Generates a new elliptic curve keypair.
client.screed(msg, registrarSignature, cb)
Create a SPS screed for the given message. Requires a registrar signature, which will be included in the screed. cb returns (err, screed)