Etan Kissling
5653649ca8
Allow light client to verify signatures at period boundary
...
As the sync committee signs the previous block, the situation arises at
every sync committee period boundary, that the new sync committee signs
a block in the previous sync committee period. The light client cannot
reliably detect this condition (e.g., assume that this is the case when
it is currently on the last slot of a sync committee period), because
the last couple slots of a sync committee period may not have a block.
For example, when receiving a `LightClientUpdate` that is constructed
as in the following illustration, it is unknown whether `sync_aggregate`
was signed by the current or next sync committee at `attested_header`.
```
slot N N + 1 | N + 2 (slot not sent!)
|
+-----------------+ \ / | +----------------+
| attested_header | <--- X ----|---- | sync_aggregate |
+-----------------+ / \ | +----------------+
missed |
|
sync committee
period boundary
```
This patch addresses this edge case by including the slot at which the
`sync_aggregate` was created into the `LightClientUpdate` object.
Note that the `signature_slot` cannot be trusted beyond the purpose of
signature verification, as it could be manipulated to any other slot
within the same sync committee period and fork version, without making
the `sync_aggregate` invalid.
2022-05-02 13:08:20 +02:00
Mikhail Kalinin
83bf20cbd4
Merge pull request #2881 from ethereum/mkalinin-patch-2
...
Remove justified block from optimistic candidate conditions
2022-04-29 19:09:02 +04:00
Mikhail Kalinin
706f417ba0
Remove justified from optimistic import conditions
2022-04-28 13:17:19 +04:00
Dmitrii Shmatko
b9cb294650
Yield attestation in equivocating indices test
2022-04-25 23:23:44 +03:00
Etan Kissling
f125538122
Fix param order in `prepare_execution_payload`
...
Documentation on how to call `prepare_execution_payload` had the params
for `safe_block_hash` and `finalized_block` hash flipped compared to the
function definition. Also updated tests for consistency.
2022-04-25 16:49:00 +02:00
Hsiao-Wei Wang
83ac38c183
Merge pull request #2872 from benjaminion/patch-1
2022-04-17 08:00:33 -07:00
Hsiao-Wei Wang
f8bf3d3119
Merge pull request #2870 from ethereum/eip4844-typo
2022-04-17 07:58:54 -07:00
Ben Edgington
eca7237b27
Correct typo: BLSCommitment -> KZGCommitment
...
The consensus chain counterpart to https://github.com/ethereum/EIPs/pull/4992 . The same comment from there applies here as well.
2022-04-13 15:04:55 +01:00
Hsiao-Wei Wang
dcf41ef5e2
Merge branch 'dev' into eip4844-typo
2022-04-12 22:14:37 +08:00
Hsiao-Wei Wang
49e4b2bc87
Merge pull request #2868 from ethereum/fix-capella-validator
...
Fix Capella `prepare_execution_payload`
2022-04-12 07:13:55 -07:00
Hsiao-Wei Wang
5978c86f3a
Typo fix: `ksg_to_version_hash` -> `kzg_to_versioned_hash`
2022-04-10 18:41:49 +08:00
Hsiao-Wei Wang
6576cab612
Fix Capella `prepare_execution_payload`
2022-04-06 18:13:39 +08:00
Danny Ryan
1bfefe301d
Merge pull request #2858 from mkalinin/justified-to-safe-block
...
Bellatrix: pass justified as a safe block
2022-03-30 12:19:21 -06:00
Danny Ryan
c87fc48053
minor typo
2022-03-30 12:04:23 -06:00
Mikhail Kalinin
b13a9f0f8a
Apply suggestions as per review
2022-03-30 15:36:01 +06:00
Hsiao-Wei Wang
70aba238b4
Merge pull request #2863 from terencechain/patch-134
...
EIP4844: fix a typo
2022-03-29 06:30:48 -07:00
terence tsao
eb26a1d74c
EIP4844: fix a minor typo
2022-03-26 08:26:52 -07:00
Danny Ryan
19613ac7cd
Merge pull request #2854 from ralexstokes/update-0x01-creds
...
Update 0x01 withdrawal credentials.
2022-03-25 16:27:41 -06:00
Mikhail Kalinin
bd66114f4a
Clarify names and move get_safe_block_hash to safe-block.md
2022-03-26 02:02:38 +06:00
Danny Ryan
656e6aef21
Merge pull request #2836 from ethereum/withdrawals-push
...
Withdrawals push
2022-03-24 10:08:29 -06:00
Danny Ryan
ee5f29cb75
fix ci
2022-03-24 09:57:43 -06:00
Mikhail Kalinin
c97cc6f4dc
Add separate get_safe_beacon_block function
2022-03-24 17:22:11 +06:00
Mikhail Kalinin
bc95973232
Reorder params
...
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2022-03-24 16:35:28 +06:00
Danny Ryan
6e369e4a53
Apply suggestions from code review
...
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2022-03-23 10:55:27 -06:00
Danny Ryan
4ac4158b42
move bls chang operation to end of block body
2022-03-23 10:54:40 -06:00
Hsiao-Wei Wang
2d0a30649b
Merge pull request #2860 from jtraglia/fix-makefile-indentation
...
Fix indententation for one line in the Makefile
2022-03-23 03:05:55 -07:00
Hsiao-Wei Wang
8a388f2226
toc
2022-03-23 15:38:17 +08:00
Justin Traglia
4c89fdb9b9
Fix indententation for one line in the Makefile
...
Real minor fix. Rule lines should start with a single tab, not spaces. Vim
clearly pointed this out by marking the entire line as red.
2022-03-22 15:05:56 -05:00
Danny Ryan
2017b61265
test address_change
2022-03-22 13:37:17 -06:00
Mikhail Kalinin
046eaf2ea0
Bellatrix: remove a comment about safe head stub
2022-03-22 22:53:47 +06:00
Mikhail Kalinin
95a2327800
Bellatrix: add get_safe_block_hash to validator.md
2022-03-22 22:51:45 +06:00
Mikhail Kalinin
d195e066ad
Fix toc
2022-03-22 20:41:42 +06:00
Mikhail Kalinin
199398c503
Bellatrix: pass justified as a safe block
2022-03-22 20:26:09 +06:00
Danny Ryan
38496ba021
toc
2022-03-22 08:23:59 -06:00
Danny Ryan
702ed9f39a
Merge branch 'withdrawals-push' into 00-to-01
2022-03-22 08:23:34 -06:00
Danny Ryan
b469593219
toc
2022-03-22 08:22:35 -06:00
Danny Ryan
0da78ebc4b
Merge branch 'withdrawals-push' into 00-to-01
2022-03-22 08:19:31 -06:00
Danny Ryan
a2db44693b
build
2022-03-22 08:14:38 -06:00
Danny Ryan
c10d219664
Merge branch 'dev' into withdrawals-push
2022-03-22 08:11:09 -06:00
Danny Ryan
43ce98b541
Merge branch 'withdrawals-push' of github.com:ethereum/eth2.0-specs into withdrawals-push
2022-03-22 08:10:53 -06:00
Danny Ryan
03f9503de0
Apply suggestions from code review
...
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
2022-03-22 08:03:55 -06:00
Danny Ryan
9a8ff4f3ab
topo sort
2022-03-22 08:00:53 -06:00
Danny Ryan
493b169022
refine naming for withdrawals
2022-03-22 07:55:45 -06:00
Danny Ryan
f5b5f638f4
Merge pull request #2857 from terencechain/patch-133
...
EIP4844: fix a minor typo
2022-03-21 12:18:05 -06:00
terence tsao
36b0044569
EIP4844: fix a minor typo
2022-03-20 08:20:08 -07:00
Danny Ryan
79cdb88e66
wip 00 to 01 cred change
2022-03-16 15:41:37 -06:00
Danny Ryan
36aae1d848
add tests for process_withdrawals
2022-03-16 13:35:29 -06:00
Danny Ryan
255e942f64
add validator and fork-choice mods for withdrawals in capella
2022-03-16 12:01:42 -06:00
Mikhail Kalinin
cc347c6ff4
Merge pull request #2851 from mkalinin/safe-head
...
Add safe_block_hash to notify_forkchoice_updated
2022-03-16 13:29:23 +06:00
Alex Stokes
0afa7e1b38
update language to reflect latest work on withdrawals
2022-03-15 18:01:47 -06:00