Get unlimited public & private packages + team-based management with npm Teams.Learn more »

@leverj/adapter

1.4.14 • Public • Published

adapter

creates and verifies order signature for gluon plasma

npm install @leverj/adapter

sign and validate order object

sign an order
const adapter = require('@leverj/adapter/src/OrderAdapter')
const {v,r,s} = adapter.sign(order, pair, secret)
validate order
const adapter = require('@leverj/adapter/src/OrderAdapter')
const apiKey = adapter.getSigner(order, pair, {v,r,s})
affirm(apiKey).to.eql(accountApiKey)

Install

npm i @leverj/adapter

DownloadsWeekly Downloads

259

Version

1.4.14

License

MIT

Unpacked Size

4.31 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar