Entropy (η)
Bases: StateComponent
Source code in pyjamaz/state/components.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | |
state_transition(header: Header, pre_state_timeslot: TimeslotState, pre_state_entropy: EntropyState) -> EntropyOutput
¶
GP-0.7.2-eq:6.22,6.23 (η') | State transition function for the state's entropy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
header
|
Header
|
GP-0.7.2-eq:4.8 (bold_H) |
required |
pre_state_timeslot
|
TimeslotState
|
GP-0.7.2-eq:4.8 (τ) |
required |
pre_state_entropy
|
EntropyState
|
GP-0.7.2-eq:4.8 (η) |
required |
Returns:
| Type | Description |
|---|---|
EntropyOutput
|
Output containing: posterior state of EntropyState (η') |
Source code in pyjamaz/state/components.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
entropy_output(header: Header) -> bytes
¶
GP-0.7.2-eq:G.5 TODO check if output is indeed the first 32 bytes or a hash of the first 32 bytes TODO refactor to vrf_output of entropy signature
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
header
|
Header
|
|
required |
Returns:
| Type | Description |
|---|---|
bytes
|
|
Source code in pyjamaz/state/components.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | |