2
2
3
3
* Note* : This document is a work-in-progress for researchers and implementers.
4
4
5
- ## Table of contents
6
-
7
- <!-- TOC -->
8
- <!-- START doctoc generated TOC please keep comment here to allow auto update -->
9
- <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5
+ <!-- mdformat-toc start --slug=github --no-anchors --maxlevel=6 --minlevel=2 -->
10
6
11
7
- [ Introduction] ( #introduction )
12
8
- [ Constants] ( #constants )
52
48
- [ Handling of reveal deadlines] ( #handling-of-reveal-deadlines )
53
49
- [ Final updates] ( #final-updates )
54
50
55
- <!-- END doctoc generated TOC please keep comment here to allow auto update -->
56
- <!-- /TOC -->
51
+ <!-- mdformat-toc end -->
57
52
58
53
## Introduction
59
54
@@ -64,55 +59,55 @@ building upon the [Sharding](../sharding/beacon-chain.md) specification.
64
59
65
60
### Misc
66
61
67
- | Name | Value | Unit |
68
- | - | - | - |
69
- | ` CUSTODY_PRIME ` | ` int(2 ** 256 - 189) ` | - |
70
- | ` CUSTODY_SECRETS ` | ` uint64(3) ` | - |
71
- | ` BYTES_PER_CUSTODY_ATOM ` | ` uint64(32) ` | bytes |
72
- | ` CUSTODY_PROBABILITY_EXPONENT ` | ` uint64(10) ` | - |
62
+ | Name | Value | Unit |
63
+ | ------------------------------ | --------------------- | ---- - |
64
+ | ` CUSTODY_PRIME ` | ` int(2 ** 256 - 189) ` | - |
65
+ | ` CUSTODY_SECRETS ` | ` uint64(3) ` | - |
66
+ | ` BYTES_PER_CUSTODY_ATOM ` | ` uint64(32) ` | bytes |
67
+ | ` CUSTODY_PROBABILITY_EXPONENT ` | ` uint64(10) ` | - |
73
68
74
69
### Domain types
75
70
76
- | Name | Value |
77
- | - | - |
71
+ | Name | Value |
72
+ | ----------------------------- | ------------------------- - |
78
73
| ` DOMAIN_CUSTODY_BIT_SLASHING ` | ` DomainType('0x83000000') ` |
79
74
80
75
## Preset
81
76
82
77
### Time parameters
83
78
84
- | Name | Value | Unit | Duration |
85
- | - | - | :-: | :-: |
86
- | ` RANDAO_PENALTY_EPOCHS ` | ` uint64(2**1) ` (= 2) | epochs | 12.8 minutes |
87
- | ` EARLY_DERIVED_SECRET_PENALTY_MAX_FUTURE_EPOCHS ` | ` uint64(2**15) ` (= 32,768) | epochs | ~ 146 days |
88
- | ` EPOCHS_PER_CUSTODY_PERIOD ` | ` uint64(2**14) ` (= 16,384) | epochs | ~ 73 days |
89
- | ` CUSTODY_PERIOD_TO_RANDAO_PADDING ` | ` uint64(2**11) ` (= 2,048) | epochs | ~ 9 days |
90
- | ` MAX_CHUNK_CHALLENGE_DELAY ` | ` uint64(2**15) ` (= 32,768) | epochs | ~ 146 days |
79
+ | Name | Value | Unit | Duration |
80
+ | ------------------------------------------------ | -------------------------- | :---- : | :--------- -: |
81
+ | ` RANDAO_PENALTY_EPOCHS ` | ` uint64(2**1) ` (= 2) | epochs | 12.8 minutes |
82
+ | ` EARLY_DERIVED_SECRET_PENALTY_MAX_FUTURE_EPOCHS ` | ` uint64(2**15) ` (= 32,768) | epochs | ~ 146 days |
83
+ | ` EPOCHS_PER_CUSTODY_PERIOD ` | ` uint64(2**14) ` (= 16,384) | epochs | ~ 73 days |
84
+ | ` CUSTODY_PERIOD_TO_RANDAO_PADDING ` | ` uint64(2**11) ` (= 2,048) | epochs | ~ 9 days |
85
+ | ` MAX_CHUNK_CHALLENGE_DELAY ` | ` uint64(2**15) ` (= 32,768) | epochs | ~ 146 days |
91
86
92
87
### Max operations per block
93
88
94
- | Name | Value |
95
- | - | - |
96
- | ` MAX_CUSTODY_CHUNK_CHALLENGE_RECORDS ` | ` uint64(2**20) ` (= 1,048,576) |
97
- | ` MAX_CUSTODY_KEY_REVEALS ` | ` uint64(2**8) ` (= 256) |
98
- | ` MAX_EARLY_DERIVED_SECRET_REVEALS ` | ` uint64(2**0) ` (= 1) |
99
- | ` MAX_CUSTODY_CHUNK_CHALLENGES ` | ` uint64(2**2) ` (= 4) |
100
- | ` MAX_CUSTODY_CHUNK_CHALLENGE_RESPONSES ` | ` uint64(2**4) ` (= 16) |
101
- | ` MAX_CUSTODY_SLASHINGS ` | ` uint64(2**0) ` (= 1) |
89
+ | Name | Value |
90
+ | --------------------------------------- | ---------------------------- - |
91
+ | ` MAX_CUSTODY_CHUNK_CHALLENGE_RECORDS ` | ` uint64(2**20) ` (= 1,048,576) |
92
+ | ` MAX_CUSTODY_KEY_REVEALS ` | ` uint64(2**8) ` (= 256) |
93
+ | ` MAX_EARLY_DERIVED_SECRET_REVEALS ` | ` uint64(2**0) ` (= 1) |
94
+ | ` MAX_CUSTODY_CHUNK_CHALLENGES ` | ` uint64(2**2) ` (= 4) |
95
+ | ` MAX_CUSTODY_CHUNK_CHALLENGE_RESPONSES ` | ` uint64(2**4) ` (= 16) |
96
+ | ` MAX_CUSTODY_SLASHINGS ` | ` uint64(2**0) ` (= 1) |
102
97
103
98
### Size parameters
104
99
105
- | Name | Value | Unit |
106
- | - | - | - |
107
- | ` BYTES_PER_CUSTODY_CHUNK ` | ` uint64(2**12) ` (= 4,096) | bytes |
108
- | ` CUSTODY_RESPONSE_DEPTH ` | ` ceillog2(MAX_SHARD_BLOCK_SIZE // BYTES_PER_CUSTODY_CHUNK) ` | - |
100
+ | Name | Value | Unit |
101
+ | ------------------------- | ----------------------------------------------------------- | ---- - |
102
+ | ` BYTES_PER_CUSTODY_CHUNK ` | ` uint64(2**12) ` (= 4,096) | bytes |
103
+ | ` CUSTODY_RESPONSE_DEPTH ` | ` ceillog2(MAX_SHARD_BLOCK_SIZE // BYTES_PER_CUSTODY_CHUNK) ` | - |
109
104
110
105
### Reward and penalty quotients
111
106
112
- | Name | Value |
113
- | - | - |
114
- | ` EARLY_DERIVED_SECRET_REVEAL_SLOT_REWARD_MULTIPLE ` | ` uint64(2**1) ` (= 2) |
115
- | ` MINOR_REWARD_QUOTIENT ` | ` uint64(2**8) ` (= 256) |
107
+ | Name | Value |
108
+ | -------------------------------------------------- | --------------------- - |
109
+ | ` EARLY_DERIVED_SECRET_REVEAL_SLOT_REWARD_MULTIPLE ` | ` uint64(2**1) ` (= 2) |
110
+ | ` MINOR_REWARD_QUOTIENT ` | ` uint64(2**8) ` (= 256) |
116
111
117
112
## Data structures
118
113
0 commit comments