sps-client

1.0.3 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i sps-client

Weekly Downloads

2

Version

1.0.3

License

BSD-3-Clause

Last publish

Collaborators

  • karissa