New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lit-protocol/crypto

Package Overview
Dependencies
Maintainers
0
Versions
525
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lit-protocol/crypto - npm Package Compare versions

Comparing version 7.0.3 to 7.0.4

16

package.json

@@ -24,3 +24,3 @@ {

],
"version": "7.0.3",
"version": "7.0.4",
"dependencies": {

@@ -40,9 +40,9 @@ "@ethersproject/abstract-provider": "5.7.0",

"util": "0.12.5",
"@lit-protocol/constants": "7.0.3",
"@lit-protocol/logger": "7.0.3",
"@lit-protocol/misc": "7.0.3",
"@lit-protocol/nacl": "7.0.3",
"@lit-protocol/types": "7.0.3",
"@lit-protocol/uint8arrays": "7.0.3",
"@lit-protocol/wasm": "7.0.3",
"@lit-protocol/constants": "7.0.4",
"@lit-protocol/logger": "7.0.4",
"@lit-protocol/misc": "7.0.4",
"@lit-protocol/nacl": "7.0.4",
"@lit-protocol/types": "7.0.4",
"@lit-protocol/uint8arrays": "7.0.4",
"@lit-protocol/wasm": "7.0.4",
"tslib": "1.14.1"

@@ -49,0 +49,0 @@ },

@@ -129,7 +129,7 @@ "use strict";

const signatureShares = validShares.map((share) => Buffer.from(share.signatureShare, 'hex'));
const [r, s, v] = await (0, wasm_1.ecdsaCombine)(variant, presignature, signatureShares);
const [r, s, recId] = await (0, wasm_1.ecdsaCombine)(variant, presignature, signatureShares);
const publicKey = Buffer.from(anyValidShare.publicKey, 'hex');
const messageHash = Buffer.from(anyValidShare.dataSigned, 'hex');
await (0, wasm_1.ecdsaVerify)(variant, messageHash, publicKey, [r, s, v]);
const signature = (0, utils_1.splitSignature)(Buffer.concat([r, s, Buffer.from([v])]));
await (0, wasm_1.ecdsaVerify)(variant, messageHash, publicKey, [r, s, recId]);
const signature = (0, utils_1.splitSignature)(Buffer.concat([r, s, Buffer.from([recId + 27])]));
return {

@@ -136,0 +136,0 @@ r: signature.r.slice('0x'.length),

Sorry, the diff of this file is not supported yet

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