@sorare/crypto
v3.0.1
Published
Crypto used in the Sorare stack
Downloads
20,031
Maintainers
Keywords
Readme
@sorare/crypto
is a JavaScript library (TypeScript types included) providing various crypto functions to be used to sign your Sorare LimitOrder objects in order to make a bid, create or accept an offer. It can be used in both NodeJS and Browser environments.
Functions
signLimitOrder
The signLimitOrder(privateKey, limitOrder)
function is used to sign a LimitOrder
object with a Sorare private key.
import { signLimitOrder } from '@sorare/crypto';
const privateKey = /* Your Sorare private key */;
const limitOrder = /* The LimitOrder object you get from GraphQL */;
const signature = signLimitOrder(privateKey, limitOrder);
Release
- Bump version in package.json
- Run
yarn release
License
@sorare/crypto
is MIT licensed.