Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sorare/crypto

Package Overview
Dependencies
Maintainers
40
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sorare/crypto

Crypto used in the Sorare stack

  • 1.3.1-beta.5
  • npm
  • Socket score

Version published
Weekly downloads
3.8K
decreased by-4.54%
Maintainers
40
Weekly downloads
 
Created
Source

JavaScript Crypto helpers for Sorare

@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);

C++ bindings

Starting from v1.2.0, C++ bindings can be used for faster verifyTransfer and verifyLimitOrder operations. It uses Starkware's crypto-cpp library and can be enabled by adding USE_STARKWARE_CRYPTO_CPP=true to your env. Please also note that yarn install will build C++ bindings (using node-gyp) starting from this version.

License

@sorare/crypto is MIT licensed.

FAQs

Package last updated on 05 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc