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)