🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@ethersproject/signing-key

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/signing-key - npm Package Compare versions

Comparing version

to
5.6.1

2

lib.esm/_version.d.ts

@@ -1,2 +0,2 @@

export declare const version = "signing-key/5.6.0";
export declare const version = "signing-key/5.6.1";
//# sourceMappingURL=_version.d.ts.map

@@ -1,2 +0,2 @@

export const version = "signing-key/5.6.0";
export const version = "signing-key/5.6.1";
//# sourceMappingURL=_version.js.map
"use strict";
import { EC } from "./elliptic";
import { arrayify, hexlify, hexZeroPad, splitSignature } from "@ethersproject/bytes";
import { arrayify, hexDataLength, hexlify, hexZeroPad, splitSignature } from "@ethersproject/bytes";
import { defineReadOnly } from "@ethersproject/properties";

@@ -19,2 +19,5 @@ import { Logger } from "@ethersproject/logger";

defineReadOnly(this, "privateKey", hexlify(privateKey));
if (hexDataLength(this.privateKey) !== 32) {
logger.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
}
const keyPair = getCurve().keyFromPrivate(arrayify(this.privateKey));

@@ -21,0 +24,0 @@ defineReadOnly(this, "publicKey", "0x" + keyPair.getPublic(false, "hex"));

@@ -1,2 +0,2 @@

export declare const version = "signing-key/5.6.0";
export declare const version = "signing-key/5.6.1";
//# sourceMappingURL=_version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "signing-key/5.6.0";
exports.version = "signing-key/5.6.1";
//# sourceMappingURL=_version.js.map

@@ -21,2 +21,5 @@ "use strict";

(0, properties_1.defineReadOnly)(this, "privateKey", (0, bytes_1.hexlify)(privateKey));
if ((0, bytes_1.hexDataLength)(this.privateKey) !== 32) {
logger.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
}
var keyPair = getCurve().keyFromPrivate((0, bytes_1.arrayify)(this.privateKey));

@@ -23,0 +26,0 @@ (0, properties_1.defineReadOnly)(this, "publicKey", "0x" + keyPair.getPublic(false, "hex"));

@@ -26,3 +26,3 @@ {

],
"gitHead": "b8cda5dffdcb688e38d7c6a0aec4c7b8b59c1af5",
"gitHead": "fc1e006575d59792fa97b4efb9ea2f8cca1944cf",
"keywords": [

@@ -48,5 +48,5 @@ "Ethereum",

"sideEffects": false,
"tarballHash": "0xd46b04feacaea3dfa9abecbadc9fca733a0f039558f4a86efc68adb7f975eafe",
"tarballHash": "0x22db035159f9e8346fbe4c608fad401e50bf4b0eca21b79612077b1401caab43",
"types": "./lib/index.d.ts",
"version": "5.6.0"
"version": "5.6.1"
}

@@ -1,1 +0,1 @@

export const version = "signing-key/5.6.0";
export const version = "signing-key/5.6.1";

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

import { arrayify, BytesLike, hexlify, hexZeroPad, Signature, SignatureLike, splitSignature } from "@ethersproject/bytes";
import { arrayify, BytesLike, hexDataLength, hexlify, hexZeroPad, Signature, SignatureLike, splitSignature } from "@ethersproject/bytes";
import { defineReadOnly } from "@ethersproject/properties";

@@ -37,2 +37,5 @@

defineReadOnly(this, "privateKey", hexlify(privateKey));
if (hexDataLength(this.privateKey) !== 32) {
logger.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
}

@@ -39,0 +42,0 @@ const keyPair = getCurve().keyFromPrivate(arrayify(this.privateKey));

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet