Socket
Socket
Sign inDemoInstall

@chainsafe/ssz

Package Overview
Dependencies
Maintainers
6
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/ssz - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

15

CHANGELOG.md

@@ -23,2 +23,17 @@ # Change Log

## [0.11.1](https://github.com/ChainSafe/ssz/compare/ssz-v0.11.0...ssz-v0.11.1) (2023-04-21)
### Bug Fixes
* Use file path imports ([#318](https://github.com/ChainSafe/ssz/issues/318)) ([f459e92](https://github.com/ChainSafe/ssz/commit/f459e92fbafc5d9388bfa630291855ec32a09566))
### Dependencies
* The following workspace dependencies were updated
* dependencies
* @chainsafe/as-sha256 bumped to 0.4.1
* @chainsafe/persistent-merkle-tree bumped to 0.6.1
## [0.11.0](https://github.com/ChainSafe/ssz/compare/ssz-v0.10.2...ssz-v0.11.0) (2023-04-05)

@@ -25,0 +40,0 @@

2

lib/branchNodeStruct.d.ts

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

import { HashObject } from "@chainsafe/as-sha256/hashObject";
import { HashObject } from "@chainsafe/as-sha256/lib/hashObject";
import { Node } from "@chainsafe/persistent-merkle-tree";

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nextPowerOf2 = exports.maxChunksToDepth = exports.bitLength = exports.mixInLength = exports.splitIntoRootChunks = exports.merkleize = exports.hash64 = void 0;
const hasher_1 = require("@chainsafe/persistent-merkle-tree/hasher");
const index_1 = require("@chainsafe/persistent-merkle-tree/lib/hasher/index");
const zeros_1 = require("./zeros");
function hash64(bytes32A, bytes32B) {
return hasher_1.hasher.digest64(bytes32A, bytes32B);
return index_1.hasher.digest64(bytes32A, bytes32B);
}

@@ -9,0 +9,0 @@ exports.hash64 = hash64;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.zeroHash = void 0;
const hasher_1 = require("@chainsafe/persistent-merkle-tree/hasher");
const index_1 = require("@chainsafe/persistent-merkle-tree/lib/hasher/index");
// create array of "zero hashes", successively hashed zero chunks

@@ -10,3 +10,3 @@ const zeroHashes = [new Uint8Array(32)];

for (let i = zeroHashes.length; i <= depth; i++) {
zeroHashes[i] = hasher_1.hasher.digest64(zeroHashes[i - 1], zeroHashes[i - 1]);
zeroHashes[i] = index_1.hasher.digest64(zeroHashes[i - 1], zeroHashes[i - 1]);
}

@@ -13,0 +13,0 @@ }

@@ -7,3 +7,3 @@ {

"homepage": "https://github.com/chainsafe/ssz",
"version": "0.11.0",
"version": "0.11.1",
"main": "lib/index.js",

@@ -39,4 +39,4 @@ "files": [

"dependencies": {
"@chainsafe/as-sha256": "^0.4.0",
"@chainsafe/persistent-merkle-tree": "^0.6.0"
"@chainsafe/as-sha256": "^0.4.1",
"@chainsafe/persistent-merkle-tree": "^0.6.1"
},

@@ -43,0 +43,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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