leverj-common

0.0.3 • Public • Published

leverj-common

common utility features

npm install leverj-common

sign and validate order object

sign an order
const auth = require('leverj-common/OrderAuthentication')
const {v,r,s} = auth.sign(order, tokenDecimalPlaces, secret)
validate order
const auth = require('leverj-common/OrderAuthentication')
const apiKey = auth.getSigner(order, tokenDecimalPlaces, {v,r,s})
affirm(apiKey).to.eql(accountApiKey)

Dependencies (4)

Dev Dependencies (2)

Package Sidebar

Install

npm i leverj-common

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

8.61 kB

Total Files

7

Last publish

Collaborators

  • bharathrao
  • bsadeh
  • nirmalgupta
  • tshanky