Skip to content

Commit

Permalink
Add comment about domain type reservation
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed May 13, 2022
1 parent 207f287 commit 5ba1812
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions specs/bellatrix/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- [Introduction](#introduction)
- [Custom types](#custom-types)
- [Constants](#constants)
- [Domain types](#domain-types)
- [Preset](#preset)
- [Execution](#execution)
- [Updated penalty values](#updated-penalty-values)
Expand Down Expand Up @@ -66,12 +65,6 @@ Additionally, this upgrade introduces the following minor changes:

## Constants

### Domain types

| Name | Value |
| - | - |
| `DOMAIN_APPLICATION` | `DomainType('0x00000001')` |

## Preset

### Execution
Expand Down
3 changes: 3 additions & 0 deletions specs/phase0/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ The following values are (non-configurable) constants used throughout the specif
| `DOMAIN_VOLUNTARY_EXIT` | `DomainType('0x04000000')` |
| `DOMAIN_SELECTION_PROOF` | `DomainType('0x05000000')` |
| `DOMAIN_AGGREGATE_AND_PROOF` | `DomainType('0x06000000')` |
| `DOMAIN_APPLICATION_MASK` | `DomainType('0x00000001')` |

*Note*: `DOMAIN_APPLICATION_MASK` reserves the rest of the bitspace in `DomainType` for application usage. This means for some `DomainType` `DOMAIN_SOME_APPLICATION`, `DOMAIN_SOME_APPLICATION && DOMAIN_APPLICATION_MASK` **MUST** be non-zero. This expression for any other `DomainType` in the consensus specs **MUST** be zero.

## Preset

Expand Down

0 comments on commit 5ba1812

Please sign in to comment.