This package has been deprecated

Author message:

use instead @leverj/adapter

@leverj/leverj-common

0.0.18 • 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)

Package Sidebar

Install

npm i @leverj/leverj-common

Weekly Downloads

0

Version

0.0.18

License

MIT

Unpacked Size

110 kB

Total Files

10

Last publish

Collaborators

  • sachet.singh
  • adikeshavs
  • tshanky
  • bharathrao
  • nirmalgupta
  • darshanrathi
  • bsadeh