npm

Need private packages and team management tools?Check out npm Orgs. »

@leverj/adapter

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

19

version

1.0.2

license

MIT

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability