Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@leverj/adapter

1.4.15 • 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

3

Version

1.4.15

License

MIT

Unpacked Size

6.35 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar