From 53f416de24527c708b63264096b1a8f4fae40a3d Mon Sep 17 00:00:00 2001 From: pubkey <8926560+pubkey@users.noreply.github.com> Date: Sun, 3 Nov 2024 21:20:45 +0100 Subject: [PATCH] 2.7.0 --- dist/es/cipher.js | 1 - dist/lib/cipher.js | 1 - dist/lib/hash.js | 3 +-- dist/lib/index.js | 9 ++++----- package.json | 2 +- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/dist/es/cipher.js b/dist/es/cipher.js index f4230acd..924dc234 100644 --- a/dist/es/cipher.js +++ b/dist/es/cipher.js @@ -12,7 +12,6 @@ export function stringify(cipher) { // 32bit Buffer.from(cipher.ciphertext, 'hex') // var bit ]); - return ret.toString('hex'); } export function parse(str) { diff --git a/dist/lib/cipher.js b/dist/lib/cipher.js index fd674d60..152b9dd2 100644 --- a/dist/lib/cipher.js +++ b/dist/lib/cipher.js @@ -19,7 +19,6 @@ function stringify(cipher) { // 32bit Buffer.from(cipher.ciphertext, 'hex') // var bit ]); - return ret.toString('hex'); } function parse(str) { diff --git a/dist/lib/hash.js b/dist/lib/hash.js index abc43bd7..6ccd4b5a 100644 --- a/dist/lib/hash.js +++ b/dist/lib/hash.js @@ -20,5 +20,4 @@ function keccak256(params) { } return _ethers.utils.solidityKeccak256(types, values); } -var SIGN_PREFIX = '\x19Ethereum Signed Message:\n32'; -exports.SIGN_PREFIX = SIGN_PREFIX; \ No newline at end of file +var SIGN_PREFIX = exports.SIGN_PREFIX = '\x19Ethereum Signed Message:\n32'; \ No newline at end of file diff --git a/dist/lib/index.js b/dist/lib/index.js index 89f8d7ce..48d05357 100644 --- a/dist/lib/index.js +++ b/dist/lib/index.js @@ -90,9 +90,9 @@ var vrs = _interopRequireWildcard(require("./vrs")); exports.vrs = vrs; var util = _interopRequireWildcard(require("./util")); exports.util = util; -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -var _default = { +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; } +var _default = exports["default"] = { createIdentity: _createIdentity.createIdentity, publicKey: publicKey, decryptWithPrivateKey: _decryptWithPrivateKey.decryptWithPrivateKey, @@ -109,5 +109,4 @@ var _default = { hex: hex, vrs: vrs, util: util -}; -exports["default"] = _default; \ No newline at end of file +}; \ No newline at end of file diff --git a/package.json b/package.json index d53f9dd9..313b96f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eth-crypto", - "version": "2.6.0", + "version": "2.7.0", "description": "Cryptographic functions for ethereum and how to use them with web3 and solidity", "keywords": [ "ethereum",