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

@sorare/crypto

Package Overview
Dependencies
Maintainers
34
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

  • 3.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4.4K
decreased by-7.09%
Maintainers
34
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);

Release

  • Bump version in package.json
  • Run yarn release

License

@sorare/crypto is MIT licensed.

FAQs

Package last updated on 08 Jan 2024

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