Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Intro

This monorepo is part of [ChainSafe's Lodestar](https://lodestar.chainsafe.io) project.
It contains packages related to [Simple Serialize](https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md).
It contains packages related to [Simple Serialize](https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/simple-serialize.md).

## Packages

Expand Down
2 changes: 1 addition & 1 deletion packages/persistent-merkle-tree/src/proof/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface TreeOffsetProof {
/**
* A proof for multiple leaves in a tree.
*
* See https://github.com/ethereum/consensus-specs/blob/dev/ssz/merkle-proofs.md#merkle-multiproofs
* See https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/merkle-proofs.md#merkle-multiproofs
*/
export interface MultiProof {
type: ProofType.multi;
Expand Down
4 changes: 2 additions & 2 deletions packages/persistent-merkle-tree/src/proof/multi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {SortOrder, computeMultiProofBitstrings} from "./util.ts";
/**
* Create an multiproof
*
* See https://github.com/ethereum/consensus-specs/blob/dev/ssz/merkle-proofs.md#merkle-multiproofs
* See https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/merkle-proofs.md#merkle-multiproofs
*
* @param rootNode the root node of the tree
* @param gindices generalized indices of leaves to include in the proof
Expand All @@ -28,7 +28,7 @@ export function createMultiProof(rootNode: Node, gindices: Gindex[]): [Uint8Arra
/**
* Recreate a `Node` given a multiproof
*
* See https://github.com/ethereum/consensus-specs/blob/dev/ssz/merkle-proofs.md#merkle-multiproofs
* See https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/merkle-proofs.md#merkle-multiproofs
*
* @param leaves leaves of a EF multiproof
* @param witnesses witnesses of a EF multiproof
Expand Down
2 changes: 1 addition & 1 deletion packages/ssz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## Summary

[Simple Serialize (SSZ)](https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md) is a consensus layer standard that defines how consensus objects are serialized and merkleized.
[Simple Serialize (SSZ)](https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/simple-serialize.md) is a consensus layer standard that defines how consensus objects are serialized and merkleized.

SSZ is a type system that defines:

Expand Down
2 changes: 1 addition & 1 deletion packages/ssz/src/type/abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export abstract class Type<V> {
* Merkleize value and compute its hashTreeRoot.
*
* See spec for definition of hashTreeRoot:
* https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md#merkleization
* https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/simple-serialize.md#merkleization
*/
abstract hashTreeRoot(value: V): Uint8Array;

Expand Down
2 changes: 1 addition & 1 deletion packages/ssz/src/type/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Type} from "./abstract.ts";

/**
* Represents a basic type as defined in the spec:
* https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md#basic-types
* https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/simple-serialize.md#basic-types
*/
export abstract class BasicType<V> extends Type<V> {
readonly isBasic = true;
Expand Down
2 changes: 1 addition & 1 deletion packages/ssz/src/type/composite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export type CompositeTypeAny = CompositeType<unknown, unknown, unknown>;

/**
* Represents a composite type as defined in the spec:
* https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md#composite-types
* https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/simple-serialize.md#composite-types
*/
export abstract class CompositeType<V, TV, TVDU> extends Type<V> {
readonly isBasic = false;
Expand Down
4 changes: 2 additions & 2 deletions packages/ssz/src/view/abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export abstract class TreeView<T extends CompositeType<unknown, unknown, unknown
* Merkleize view and compute its hashTreeRoot.
*
* See spec for definition of hashTreeRoot:
* https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md#merkleization
* https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/simple-serialize.md#merkleization
*/
hashTreeRoot(): Uint8Array {
return this.node.root;
Expand All @@ -49,7 +49,7 @@ export abstract class TreeView<T extends CompositeType<unknown, unknown, unknown
* ```
*
* See spec for definition of merkle multiproofs:
* https://github.com/ethereum/consensus-specs/blob/dev/ssz/merkle-proofs.md#merkle-multiproofs
* https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/merkle-proofs.md#merkle-multiproofs
*/
createProof(paths: JsonPath[]): Proof {
return this.type.tree_createProof(this.node, paths);
Expand Down
2 changes: 1 addition & 1 deletion packages/ssz/src/viewDU/abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export abstract class TreeViewDU<T extends CompositeType<unknown, unknown, unkno
* Commits any pending changes before computing the root.
*
* See spec for definition of hashTreeRoot:
* https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md#merkleization
* https://github.com/ethereum/consensus-specs/blob/v1.6.1/ssz/simple-serialize.md#merkleization
*/
hashTreeRoot(): Uint8Array {
this.commit();
Expand Down