From 1392c931d0f208ab3f156ea56e3cb667644706de Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Fri, 23 Aug 2019 12:00:01 -0600 Subject: [PATCH] add GeneralizedIndex to custom types --- specs/core/1_beacon-chain-misc.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specs/core/1_beacon-chain-misc.md b/specs/core/1_beacon-chain-misc.md index 4539be6b0..b6f23a00e 100644 --- a/specs/core/1_beacon-chain-misc.md +++ b/specs/core/1_beacon-chain-misc.md @@ -6,6 +6,7 @@ - [Phase 1 miscellaneous beacon chain changes](#phase-1-miscellaneous-beacon-chain-changes) - [Table of contents](#table-of-contents) + - [Custom types](#custom-types) - [Configuration](#configuration) - [Classes](#classes) - [CompactCommittee](#compactcommittee) @@ -26,6 +27,14 @@ +## Custom types + +We define the following Python custom types for type hinting and readability: + +| Name | SSZ equivalent | Description | +| - | - | - | +| `GeneralizedIndex` | `uint64` | a generalized index into an SSZ merkle tree | + ## Configuration | Name | Value | Unit | Duration