@emurgo/yoroi-lib
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -33,6 +33,9 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createYoroiLib = exports.RUST_u32_MAX = exports.UtxoModels = exports.UtxoService = exports.initUtxo = exports.AccountService = void 0; | ||
const bignumber_js_1 = require("bignumber.js"); | ||
const hash_wasm_1 = require("hash-wasm"); | ||
const blake2b_1 = __importDefault(require("./internals/blake2b")); | ||
const bech32_1 = require("bech32"); | ||
@@ -94,3 +97,3 @@ const errors_1 = require("./errors"); | ||
const txBody = yield tx.body(); | ||
const blake2bTxHash = yield (0, hash_wasm_1.blake2b)(yield txBody.toBytes(), 256); | ||
const blake2bTxHash = yield (0, blake2b_1.default)(yield txBody.toBytes(), 256); | ||
return blake2bTxHash; | ||
@@ -322,3 +325,3 @@ }); | ||
else if (unsignedTx.auxiliaryData && unsignedTx.auxiliaryData.hasValue()) { | ||
const auxiliaryDataHash = yield (0, hash_wasm_1.blake2b)(yield unsignedTx.auxiliaryData.toBytes(), 256); | ||
const auxiliaryDataHash = yield (0, blake2b_1.default)(yield unsignedTx.auxiliaryData.toBytes(), 256); | ||
auxiliaryData = { | ||
@@ -325,0 +328,0 @@ type: ledgerjs_hw_app_cardano_1.TxAuxiliaryDataType.ARBITRARY_HASH, |
@@ -20,3 +20,2 @@ "use strict"; | ||
const ledgerjs_hw_app_cardano_1 = require("@cardano-foundation/ledgerjs-hw-app-cardano"); | ||
// import { blake2b } from 'hash-wasm' | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
@@ -23,0 +22,0 @@ const blake2b = require('blake2b'); |
{ | ||
"name": "@emurgo/yoroi-lib", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "", | ||
@@ -33,7 +33,7 @@ "main": "dist/index.js", | ||
"bignumber.js": "^9.0.1", | ||
"blake2b": "^2.1.4", | ||
"hash-wasm": "^4.9.0" | ||
"blake2": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@emurgo/cross-csl-nodejs": "^2.7.0", | ||
"@types/blake2": "^4.0.2", | ||
"@types/chai": "^4.2.21", | ||
@@ -56,2 +56,2 @@ "@types/mocha": "^9.0.0", | ||
} | ||
} | ||
} |
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
243468
6
62
4338
18
+ Addedblake2@^5.0.0
+ Addedblake2@5.0.0(transitive)
- Removedblake2b@^2.1.4
- Removedhash-wasm@^4.9.0