@dydxprotocol/starkex-lib
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -36,5 +36,2 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -49,3 +46,2 @@ exports.getPublicKey = exports.sign = exports.verify = exports.pedersen = void 0; | ||
const BigIntBuffer = __importStar(require("bigint-buffer")); | ||
const ffi_napi_1 = __importDefault(require("ffi-napi")); | ||
const CRYPTO_CPP_LIB = 'libcrypto_c_exports'; | ||
@@ -59,3 +55,5 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
try { | ||
libcrypto = ffi_napi_1.default.Library(`${__dirname}/${CRYPTO_CPP_LIB}`, { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require | ||
const ffi = require('ffi-napi'); | ||
libcrypto = ffi.Library(`${__dirname}/${CRYPTO_CPP_LIB}`, { | ||
Hash: ['int', ['string', 'string', 'string']], | ||
@@ -132,2 +130,2 @@ Verify: ['bool', ['string', 'string', 'string', 'string']], | ||
exports.getPublicKey = getPublicKey; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Rhcmt3YXJlLWNyeXB0by5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvY3J5cHRvLWNwcC9zdGFya3dhcmUtY3J5cHRvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxpRkFBaUY7QUFDakYsaUZBQWlGO0FBQ2pGLGlGQUFpRjtBQUNqRixpRkFBaUY7QUFDakYsaUZBQWlGO0FBQ2pGLGlGQUFpRjtBQUNqRixpRkFBaUY7QUFDakYsaUZBQWlGO0FBQ2pGLGlGQUFpRjtBQUNqRixpRkFBaUY7QUFDakYsaUZBQWlGO0FBQ2pGLGlGQUFpR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Q0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFDdkQsTUFBTSxDQUFDLEdBQUcsWUFBWSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQ3hELE9BQU8sRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUM7QUFDbEIsQ0FBQztBQW5CRCxvQkFtQkM7QUFFRDs7OztHQUlHO0FBQ0gsU0FBZ0IsWUFBWSxDQUFDLFVBQWtCO0lBQzdDLE1BQU0sYUFBYSxHQUFHLFlBQVksQ0FBQyxVQUFVLENBQUMsVUFBVSxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQzlELE1BQU0sTUFBTSxHQUFHLE1BQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDbEMsTUFBTSxHQUFHLEdBQUcsU0FBUyxDQUFDLFlBQVksQ0FBQyxhQUFhLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDMUQsSUFBSSxHQUFHLEtBQUssQ0FBQyxFQUFFO1FBQ2IsTUFBTSxJQUFJLEtBQUssQ0FBQywyQkFBMkIsTUFBTSxDQUFDLFFBQVEsRUFBRSxFQUFFLENBQUMsQ0FBQztLQUNqRTtJQUNELE9BQU8sWUFBWSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUN6QyxDQUFDO0FBUkQsb0NBUUMifQ== |
{ | ||
"name": "@dydxprotocol/starkex-lib", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Cryptographic functions for use with StarkEx", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
@@ -25,3 +25,2 @@ ///////////////////////////////////////////////////////////////////////////////// | ||
import * as BigIntBuffer from 'bigint-buffer'; | ||
import ffi from 'ffi-napi'; | ||
@@ -40,2 +39,5 @@ const CRYPTO_CPP_LIB = 'libcrypto_c_exports'; | ||
try { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require | ||
const ffi = require('ffi-napi'); | ||
libcrypto = ffi.Library( | ||
@@ -42,0 +44,0 @@ `${__dirname}/${CRYPTO_CPP_LIB}`, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
981269
11591