@leverj/adapter
v4.3.1
Published
common utilities used in leverj exchange
Downloads
25
Readme
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)