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

@dydxprotocol/starkex-lib

Package Overview
Dependencies
Maintainers
8
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dydxprotocol/starkex-lib - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

build/src/signable/stark-signable.js

@@ -25,3 +25,3 @@ "use strict";

async getHash() {
return (await this.getHashBN()).toString(16);
return (await this.getHashBN()).toString(16).padStart(63, '0');
}

@@ -62,2 +62,2 @@ async getHashBN() {

exports.StarkSignable = StarkSignable;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Rhcmstc2lnbmFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2lnbmFibGUvc3Rhcmstc2lnbmFibGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsNENBQWlFO0FBQ2pFLHdDQU1vQjtBQUNwQiwwQ0FHdUI7QUFDdkIsMERBQXFEO0FBTXJEOztHQUVHO0FBQ0gsTUFBc0IsYUFBYTtJQU9qQyxZQUNFLE9BQVUsRUFDVixTQUFvQjtRQUpkLFlBQU8sR0FBYyxJQUFJLENBQUM7UUFNaEMsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7UUFDdkIsSUFBSSxDQUFDLFNBQVMsR0FBRyxTQUFTLENBQUM7UUFFM0IsZ0JBQWdCO1FBQ2hCLElBQUksQ0FBQyw2Q0FBaUMsQ0FBQyxTQUFTLENBQUMsRUFBRTtZQUNqRCxNQUFNLElBQUksS0FBSyxDQUFDLCtEQUErRCxTQUFTLEVBQUUsQ0FBQyxDQUFDO1NBQzdGO0lBQ0gsQ0FBQztJQUVEOztPQUVHO0lBQ0gsS0FBSyxDQUFDLE9BQU87UUFDWCxPQUFPLENBQUMsTUFBTSxJQUFJLEN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BRSxTQUFTLEVBQUUsQ0FBQyxFQUFFLG9CQUFvQixFQUFFLENBQUMsQ0FBQztZQUNyRixPQUFPLGVBQU0sQ0FBQyxXQUFXLEVBQUUsTUFBTSxJQUFJLENBQUMsU0FBUyxFQUFFLEVBQUUsZUFBZSxDQUFDLENBQUM7U0FDckU7UUFFRCxzRkFBc0Y7UUFDdEYsRUFBRTtRQUNGLGdCQUFnQjtRQUNoQix3SkFBd0o7UUFDeEosTUFBTSxNQUFNLEdBQUcsTUFBTSxJQUFJLENBQUMsU0FBUyxFQUFFLENBQUM7UUFDdEMsT0FBTyxDQUNMLENBQUMsTUFBTSxlQUFNLENBQUMsMkJBQWlCLENBQUMsU0FBUyxFQUFFLEtBQUssQ0FBQyxFQUFFLE1BQU0sRUFBRSxlQUFlLENBQUMsQ0FBQztZQUM1RSxlQUFNLENBQUMsMkJBQWlCLENBQUMsU0FBUyxFQUFFLElBQUksQ0FBQyxFQUFFLE1BQU0sRUFBRSxlQUFlLENBQUMsQ0FDcEUsQ0FBQztJQUNKLENBQUM7Q0FNRjtBQTVFRCxzQ0E0RUMifQ==
{
"name": "@dydxprotocol/starkex-lib",
"version": "1.0.3",
"version": "1.0.4",
"description": "Cryptographic functions for use with StarkEx",

@@ -5,0 +5,0 @@ "main": "build/src/index.js",

@@ -48,3 +48,3 @@ import BN from 'bn.js';

async getHash(): Promise<string> {
return (await this.getHashBN()).toString(16);
return (await this.getHashBN()).toString(16).padStart(63, '0');
}

@@ -51,0 +51,0 @@

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