Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@emurgo/yoroi-lib

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emurgo/yoroi-lib - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

dist/internals/blake2b.d.ts

9

dist/index.js

@@ -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",

}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc