Skip to content

Commit

Permalink
2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Nov 3, 2024
1 parent 562158a commit 53f416d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion dist/es/cipher.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export function stringify(cipher) {
// 32bit
Buffer.from(cipher.ciphertext, 'hex') // var bit
]);

return ret.toString('hex');
}
export function parse(str) {
Expand Down
1 change: 0 additions & 1 deletion dist/lib/cipher.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function stringify(cipher) {
// 32bit
Buffer.from(cipher.ciphertext, 'hex') // var bit
]);

return ret.toString('hex');
}
function parse(str) {
Expand Down
3 changes: 1 addition & 2 deletions dist/lib/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
var SIGN_PREFIX = exports.SIGN_PREFIX = '\x19Ethereum Signed Message:\n32';
9 changes: 4 additions & 5 deletions dist/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -109,5 +109,4 @@ var _default = {
hex: hex,
vrs: vrs,
util: util
};
exports["default"] = _default;
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 53f416d

Please sign in to comment.