@taquito/ledger-signer
Advanced tools
Comparing version 11.2.0 to 12.0.0-beta-RC.0
@@ -19,3 +19,3 @@ "use strict"; | ||
const utils_2 = require("./utils"); | ||
const libsodium_wrappers_1 = require("libsodium-wrappers"); | ||
const blake2b_1 = require("@stablelib/blake2b"); | ||
var DerivationType; | ||
@@ -100,4 +100,3 @@ (function (DerivationType) { | ||
const publicKey = utils_1.b58cencode(compressedPublicKey, prefixes.prefPk); | ||
yield libsodium_wrappers_1.default.ready; | ||
const publicKeyHash = utils_1.b58cencode(libsodium_wrappers_1.default.crypto_generichash(20, compressedPublicKey), prefixes.prefPkh); | ||
const publicKeyHash = utils_1.b58cencode(blake2b_1.hash(compressedPublicKey, 20), prefixes.prefPkh); | ||
this._publicKey = publicKey; | ||
@@ -104,0 +103,0 @@ this._publicKeyHash = publicKeyHash; |
@@ -6,5 +6,5 @@ "use strict"; | ||
exports.VERSION = { | ||
"commitHash": "81f0a5b103f867f57fbe5d526315c375a3788346", | ||
"version": "11.2.0" | ||
"commitHash": "5da8cec9c84c0ab7bc37c0eb09e68db1b3a8b1f0", | ||
"version": "12.0.0-beta-RC.0" | ||
}; | ||
//# sourceMappingURL=version.js.map |
import { b58cencode, prefix, Prefix } from '@taquito/utils'; | ||
import sodium from 'libsodium-wrappers'; | ||
import { hash } from '@stablelib/blake2b'; | ||
@@ -151,4 +151,4 @@ /*! ***************************************************************************** | ||
const VERSION = { | ||
"commitHash": "81f0a5b103f867f57fbe5d526315c375a3788346", | ||
"version": "11.2.0" | ||
"commitHash": "5da8cec9c84c0ab7bc37c0eb09e68db1b3a8b1f0", | ||
"version": "12.0.0-beta-RC.0" | ||
}; | ||
@@ -236,4 +236,3 @@ | ||
const publicKey = b58cencode(compressedPublicKey, prefixes.prefPk); | ||
yield sodium.ready; | ||
const publicKeyHash = b58cencode(sodium.crypto_generichash(20, compressedPublicKey), prefixes.prefPkh); | ||
const publicKeyHash = b58cencode(hash(compressedPublicKey, 20), prefixes.prefPkh); | ||
this._publicKey = publicKey; | ||
@@ -240,0 +239,0 @@ this._publicKeyHash = publicKeyHash; |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taquito/utils'), require('libsodium-wrappers')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@taquito/utils', 'libsodium-wrappers'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoLedgerSigner = {}, global.utils, global.sodium)); | ||
})(this, (function (exports, utils, sodium) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taquito/utils'), require('@stablelib/blake2b')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@taquito/utils', '@stablelib/blake2b'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoLedgerSigner = {}, global.utils, global.blake2b)); | ||
})(this, (function (exports, utils, blake2b) { 'use strict'; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var sodium__default = /*#__PURE__*/_interopDefaultLegacy(sodium); | ||
/*! ***************************************************************************** | ||
@@ -158,4 +154,4 @@ Copyright (c) Microsoft Corporation. | ||
const VERSION = { | ||
"commitHash": "81f0a5b103f867f57fbe5d526315c375a3788346", | ||
"version": "11.2.0" | ||
"commitHash": "5da8cec9c84c0ab7bc37c0eb09e68db1b3a8b1f0", | ||
"version": "12.0.0-beta-RC.0" | ||
}; | ||
@@ -243,4 +239,3 @@ | ||
const publicKey = utils.b58cencode(compressedPublicKey, prefixes.prefPk); | ||
yield sodium__default["default"].ready; | ||
const publicKeyHash = utils.b58cencode(sodium__default["default"].crypto_generichash(20, compressedPublicKey), prefixes.prefPkh); | ||
const publicKeyHash = utils.b58cencode(blake2b.hash(compressedPublicKey, 20), prefixes.prefPkh); | ||
this._publicKey = publicKey; | ||
@@ -247,0 +242,0 @@ this._publicKeyHash = publicKeyHash; |
{ | ||
"name": "@taquito/ledger-signer", | ||
"version": "11.2.0", | ||
"version": "12.0.0-beta-RC.0", | ||
"description": "Ledger signer provider", | ||
@@ -61,6 +61,6 @@ "keywords": [ | ||
"@ledgerhq/hw-transport": "^6.20.0", | ||
"@taquito/taquito": "^11.2.0", | ||
"@taquito/utils": "^11.2.0", | ||
"buffer": "^6.0.3", | ||
"libsodium-wrappers": "0.7.8" | ||
"@stablelib/blake2b": "^1.0.1", | ||
"@taquito/taquito": "^12.0.0-beta-RC.0", | ||
"@taquito/utils": "^12.0.0-beta-RC.0", | ||
"buffer": "^6.0.3" | ||
}, | ||
@@ -70,3 +70,2 @@ "devDependencies": { | ||
"@types/jest": "^26.0.24", | ||
"@types/libsodium-wrappers": "0.7.8", | ||
"@types/node": "^17.0.0", | ||
@@ -98,3 +97,3 @@ "@types/ws": "^8.2.2", | ||
}, | ||
"gitHead": "7323157124742e8f2fdb11642f6b779cfb15df43" | ||
"gitHead": "02c79fe3e9bff81668b22a17f0e2aa4bc8d1e231" | ||
} |
@@ -17,3 +17,3 @@ /** | ||
} from './utils'; | ||
import sodium from 'libsodium-wrappers'; | ||
import { hash } from '@stablelib/blake2b'; | ||
@@ -107,7 +107,3 @@ export type LedgerTransport = Pick<Transport, 'send' | 'decorateAppAPIMethods' | 'setScrambleKey'>; | ||
const publicKey = b58cencode(compressedPublicKey, prefixes.prefPk); | ||
await sodium.ready; | ||
const publicKeyHash = b58cencode( | ||
sodium.crypto_generichash(20, compressedPublicKey), | ||
prefixes.prefPkh | ||
); | ||
const publicKeyHash = b58cencode(hash(compressedPublicKey, 20), prefixes.prefPkh); | ||
@@ -114,0 +110,0 @@ this._publicKey = publicKey; |
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN! | ||
export const VERSION = { | ||
"commitHash": "81f0a5b103f867f57fbe5d526315c375a3788346", | ||
"version": "11.2.0" | ||
"commitHash": "5da8cec9c84c0ab7bc37c0eb09e68db1b3a8b1f0", | ||
"version": "12.0.0-beta-RC.0" | ||
}; |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
27
148821
1974
2
+ Added@stablelib/blake2b@^1.0.1
+ Added@taquito/http-utils@12.1.1(transitive)
+ Added@taquito/local-forging@12.1.1(transitive)
+ Added@taquito/michel-codec@12.1.1(transitive)
+ Added@taquito/michelson-encoder@12.1.1(transitive)
+ Added@taquito/rpc@12.1.1(transitive)
+ Added@taquito/taquito@12.1.1(transitive)
+ Added@taquito/utils@12.1.1(transitive)
+ Addedaxios@0.26.1(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
- Removedlibsodium-wrappers@0.7.8
- Removed@taquito/http-utils@11.2.0(transitive)
- Removed@taquito/michel-codec@11.2.0(transitive)
- Removed@taquito/michelson-encoder@11.2.0(transitive)
- Removed@taquito/rpc@11.2.0(transitive)
- Removed@taquito/taquito@11.2.0(transitive)
- Removed@taquito/utils@11.2.0(transitive)
- Removedcookiejar@2.1.4(transitive)
- Removedlibsodium@0.7.8(transitive)
- Removedlibsodium-wrappers@0.7.8(transitive)
- Removedxhr2-cookies@1.1.0(transitive)