conseiljs-softsigner
Advanced tools
Comparing version 5.0.2-beta.0 to 5.0.2-beta.1
@@ -6,4 +6,4 @@ /// <reference types="node" /> | ||
constructor(secretKey: Buffer); | ||
sign(bytes: Buffer): Promise<Buffer>; | ||
signOperation(bytes: Buffer): Promise<Buffer>; | ||
signText(message: string): Promise<string>; | ||
} |
@@ -18,3 +18,3 @@ "use strict"; | ||
} | ||
sign(bytes) { | ||
signOperation(bytes) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -26,3 +26,3 @@ return CryptoUtils_1.CryptoUtils.signDetached(conseiljs_1.TezosMessageUtils.simpleHash(bytes, 32), this.secretKey); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const messageSig = yield this.sign(Buffer.from(message, 'utf8')); | ||
const messageSig = yield CryptoUtils_1.CryptoUtils.signDetached(Buffer.from(message, 'utf8'), this.secretKey); | ||
return conseiljs_1.TezosMessageUtils.readSignatureWithHint(messageSig, 'edsig'); | ||
@@ -29,0 +29,0 @@ }); |
{ | ||
"name": "conseiljs-softsigner", | ||
"version": "5.0.2-beta.0", | ||
"version": "5.0.2-beta.1", | ||
"description": "ConseilJS software signer plugin for ConseilJS-core. Supports the ED25519 curve via libsodium for tz1-address operations.", | ||
@@ -20,7 +20,7 @@ "browser": "dist/index.js", | ||
"package": "rm -rf ./dist && tsc && copyfiles -u 1 \"./src/**/*.js\" dist/", | ||
"package-web": "webpack && rm -rf ./dist-web/dist && openssl dgst -sha384 -binary ./dist-web/conseiljs.min.js | openssl base64 -A" | ||
"package-web": "webpack && rm -rf ./dist-web/dist && openssl dgst -sha384 -binary ./dist-web/conseiljs-softsigner.min.js | openssl base64 -A" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Cryptonomic/ConseilJS.git" | ||
"url": "git+https://github.com/Cryptonomic/ConseilJS-softsigner.git" | ||
}, | ||
@@ -30,4 +30,2 @@ "keywords": [ | ||
"conseil", | ||
"blockchain analytics", | ||
"blockchain reporting", | ||
"blockchain data access", | ||
@@ -46,3 +44,3 @@ "web3", | ||
"bugs": { | ||
"url": "https://github.com/Cryptonomic/ConseilJS/issues" | ||
"url": "https://github.com/Cryptonomic/ConseilJS-softsigner/issues" | ||
}, | ||
@@ -63,5 +61,3 @@ "homepage": "https://cryptonomic.github.io/ConseilJS/#/", | ||
], | ||
"reporter": [ | ||
"text-lcov" | ||
], | ||
"reporter": [ "text", "text-lcov" ], | ||
"sourceMap": true, | ||
@@ -72,3 +68,3 @@ "instrument": true | ||
"bip39": "3.0.2", | ||
"conseiljs": "5.0.2-beta.0", | ||
"conseiljs": "5.0.2-beta.2", | ||
"libsodium-wrappers-sumo": "0.7.6" | ||
@@ -87,2 +83,3 @@ }, | ||
"chai-as-promised": "7.1.1", | ||
"conseiljs": "5.0.2-beta.0", | ||
"copyfiles": "2.3.0", | ||
@@ -89,0 +86,0 @@ "coveralls": "3.1.0", |
# ConseilJS-softsigner | ||
[![npm version](https://img.shields.io/npm/v/conseiljs-softsigner.svg)](https://www.npmjs.com/package/conseiljs-softsigner) | ||
[![npm](https://img.shields.io/npm/dm/conseiljs-softsigner.svg)](https://www.npmjs.com/package/conseiljs-softsigner) | ||
[![Build Status](https://travis-ci.org/Cryptonomic/ConseilJS-softsigner.svg?branch=master)](https://travis-ci.org/Cryptonomic/ConseilJS-softsigner) | ||
[![Coverage Status](https://coveralls.io/repos/github/Cryptonomic/ConseilJS-softsigner/badge.svg?branch=master)](https://coveralls.io/github/Cryptonomic/ConseilJS-softsigner?branch=master) | ||
[![dependencies](https://david-dm.org/Cryptonomic/ConseilJS-softsigner/status.svg)](https://david-dm.org/Cryptonomic/ConseilJS-softsigner) | ||
[ConseilJS](https://www.npmjs.com/package/conseiljs) software signer plugin for [ConseilJS-core](https://github.com/Cryptonomic/ConseilJS). Supports the ED25519 curve via libsodium for tz1-address operations on the Tezos platform. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
37741
0
10
29
+ Addedconseiljs@5.0.2-beta.2(transitive)
- Removedconseiljs@5.0.2-beta.0(transitive)
Updatedconseiljs@5.0.2-beta.2