New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3-beta.0

1

dist/index.d.ts

@@ -16,2 +16,3 @@ import { LimitOrder, Transfer, FiatTransfer, AuthorizationRequest, Signature } from './types';

export declare const verifyFiatTransfer: (publicKey: string, fiatTransfer: FiatTransfer, signature: Signature) => boolean;
export declare const signMany: (privateKey: string, values: string[]) => Signature;
export declare const isATransferAuthorizationRequest: (request: AuthorizationRequest) => request is Transfer;

@@ -18,0 +19,0 @@ export declare const isALimitOrderAuthorizationRequest: (request: AuthorizationRequest) => request is LimitOrder;

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

});
exports.verifyTransfer = exports.verifyMessage = exports.verifyLimitOrder = exports.verifyFiatTransfer = exports.signTransfer = exports.signMessage = exports.signLimitOrder = exports.signFiatTransfer = exports.signAuthorizationRequest = exports.isATransferAuthorizationRequest = exports.isALimitOrderAuthorizationRequest = exports.isAFiatTransferAuthorizationRequest = exports.generateKey = exports.exportPublicKey = void 0;
exports.verifyTransfer = exports.verifyMessage = exports.verifyLimitOrder = exports.verifyFiatTransfer = exports.signTransfer = exports.signMessage = exports.signMany = exports.signLimitOrder = exports.signFiatTransfer = exports.signAuthorizationRequest = exports.isATransferAuthorizationRequest = exports.isALimitOrderAuthorizationRequest = exports.isAFiatTransferAuthorizationRequest = exports.generateKey = exports.exportPublicKey = void 0;

@@ -196,2 +196,11 @@ var _bip = require("@scure/bip39");

var signMany = function signMany(privateKey, values) {
var hash = starknet.poseidonHashMany(values.map(function (v) {
return BigInt(v);
}));
return sign(privateKey, hash.toString(16));
};
exports.signMany = signMany;
var isATransferAuthorizationRequest = function isATransferAuthorizationRequest(request) {

@@ -232,2 +241,2 @@ return 'receiverVaultId' in request;

exports.signAuthorizationRequest = signAuthorizationRequest;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6WyJQQVRIIiwiZ2VuZXJhdGVLZXkiLCJtbmVtb25pYyIsInNlZWQiLCJ3b3JkbGlzdCIsInB1YmxpY0tleSIsInNlY3AyNTZrMSIsImdldFB1YmxpY0tleSIsIkhES2V5IiwiZnJvbU1hc3RlclNlZWQiLCJkZXJpdmUiLCJwcml2YXRlS2V5Iiwic2xpY2UiLCJhZGRyZXNzIiwicGF0aCIsInN0YXJrbmV0IiwiZ2V0QWNjb3VudFBhdGgiLCJrZXlTZWVkIiwiZ3JpbmRLZXkiLCJwYWRTdGFydCIsImV4cG9ydFB1YmxpY0tleSIsImlzQ29tcHJlc3NlZCIsImhhc2hUcmFuc2ZlciIsInRyYW5zZmVyIiwiYW1vdW50Iiwibm9uY2UiLCJzZW5kZXJWYXVsdElkIiwidG9rZW4iLCJyZWNlaXZlclZhdWx0SWQiLCJyZWNlaXZlclB1YmxpY0tleSIsImV4cGlyYXRpb25UaW1lc3RhbXAiLCJjb25kaXRpb24iLCJmZWVJbmZvVXNlciIsImFyZ3MiLCJnZXRUcmFuc2Zlck1zZ0hhc2hXaXRoRmVlIiwidG9rZW5JZCIsInNvdXJjZVZhdWx0SWQiLCJmZWVMaW1pdCIsImdldFRyYW5zZmVyTXNnSGFzaCIsImhhc2hMaW1pdE9yZGVyIiwibGltaXRPcmRlciIsInZhdWx0SWRTZWxsIiwidmF1bHRJZEJ1eSIsImFtb3VudFNlbGwiLCJhbW91bnRCdXkiLCJ0b2tlblNlbGwiLCJ0b2tlbkJ1eSIsImZlZUluZm8iLCJnZXRMaW1pdE9yZGVyTXNnSGFzaFdpdGhGZWUiLCJnZXRMaW1pdE9yZGVyTXNnSGFzaCIsInNpZ24iLCJtZXNzYWdlIiwiciIsInMiLCJ0b1N0cmluZyIsInZlcmlme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dE9yZGVyQXV0aG9yaXphdGlvblJlcXVlc3QoYXV0aG9yaXphdGlvblJlcXVlc3QpKSB7XG4gICAgcmV0dXJuIHNpZ25MaW1pdE9yZGVyKHByaXZhdGVLZXksIGF1dGhvcml6YXRpb25SZXF1ZXN0KTtcbiAgfVxuICBpZiAoaXNBRmlhdFRyYW5zZmVyQXV0aG9yaXphdGlvblJlcXVlc3QoYXV0aG9yaXphdGlvblJlcXVlc3QpKSB7XG4gICAgcmV0dXJuIHNpZ25GaWF0VHJhbnNmZXIocHJpdmF0ZUtleSwgYXV0aG9yaXphdGlvblJlcXVlc3QpO1xuICB9XG5cbiAgdGhyb3cgbmV3IEVycm9yKCdJbnZhbGlkIGF1dGhvcml6YXRpb24gcmVxdWVzdCcpO1xufTtcbiJdfQ==

2

package.json

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "2.0.2",
"version": "2.0.3-beta.0",
"main": "lib.js",

@@ -9,0 +9,0 @@ "dependencies": {

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