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