lighthouse/common/eth2/src
Michael Sproul f35a33716b Quote validator indices when posting duties (#2943)
## Proposed Changes

This PR establishes compatibility between Lighthouse's VC and Nimbus's BN.

Lighthouse was previously `POST`ing unquoted lists of validator indices to the attester and sync duties endpoints which were (correctly) not accepted by Nimbus. These lists had slipped through the cracks because they didn't have an explicit wrapper type to add `serde` annotations to. I've added the `ValidatorIndexDataRef` newtype in order to implement the modified serialisation behaviour.

## Testing

Combined with https://github.com/sigp/lighthouse/pull/2940, I've confirmed that this PR allows my Lighthouse VC on Prater to validate with the public Nimbus BN listed here: https://github.com/status-im/nimbus-eth2#quickly-test-your-tooling-against-nimbus. I haven't had a block proposal yet, but attestations and sync committee messages are working.

## Additional Info

This may also provide compatibility with Prysm BNs but I haven't had a chance to test that yet.
2022-01-21 06:07:20 +00:00
..
lighthouse_vc Web3Signer support for VC (#2522) 2021-09-16 03:26:33 +00:00
lib.rs Quote validator indices when posting duties (#2943) 2022-01-21 06:07:20 +00:00
lighthouse.rs Rename eth2_libp2p to lighthouse_network (#2702) 2021-10-19 00:30:39 +00:00
mixin.rs Add API version headers and map_fork_name! (#2745) 2021-10-28 01:18:04 +00:00
types.rs Quote validator indices when posting duties (#2943) 2022-01-21 06:07:20 +00:00