lighthouse-pulse/common
Paul Hauner 6ea3bc5e52 Implement VC API (#1657)
## Issue Addressed

NA

## Proposed Changes

- Implements a HTTP API for the validator client.
- Creates EIP-2335 keystores with an empty `description` field, instead of a missing `description` field. Adds option to set name.
- Be more graceful with setups without any validators (yet)
    - Remove an error log when there are no validators.
    - Create the `validator` dir if it doesn't exist.
- Allow building a `ValidatorDir` without a withdrawal keystore (required for the API method where we only post a voting keystore).
- Add optional `description` field to `validator_definitions.yml`

## TODO

- [x] Signature header, as per https://github.com/sigp/lighthouse/issues/1269#issuecomment-649879855
- [x] Return validator descriptions
- [x] Return deposit data
- [x] Respect the mnemonic offset
- [x] Check that mnemonic can derive returned keys
- [x] Be strict about non-localhost
- [x] Allow graceful start without any validators (+ create validator dir)
- [x] Docs final pass
- [x] Swap to EIP-2335 description field. 
- [x] Fix Zerioze TODO in VC api types.
- [x] Zeroize secp256k1 key

## Endpoints

- [x] `GET /lighthouse/version`
- [x] `GET /lighthouse/health`
- [x] `GET /lighthouse/validators` 
- [x] `POST /lighthouse/validators/hd`
- [x] `POST /lighthouse/validators/keystore`
- [x] `PATCH /lighthouse/validators/:validator_pubkey`
- [ ] ~~`POST /lighthouse/validators/:validator_pubkey/exit/:epoch`~~ Future works


## Additional Info

TBC
2020-10-02 09:42:19 +00:00
..
account_utils Implement VC API (#1657) 2020-10-02 09:42:19 +00:00
clap_utils Add support for multiple testnet flags (#1396) 2020-07-29 06:39:29 +00:00
compare_fields Check for unused deps in CI (#1262) 2020-06-14 10:59:50 +10:00
compare_fields_derive Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
deposit_contract Cross-compile to vendored x86_84, aarch64 (Raspberry Pi 4) (#1497) 2020-08-11 05:16:30 +00:00
directory Directory restructure (#1532) 2020-10-01 11:12:35 +10:00
eth2 Implement VC API (#1657) 2020-10-02 09:42:19 +00:00
eth2_config Spadina genesis and lighthouse bootnode (#1681) 2020-09-29 02:54:43 +00:00
eth2_interop_keypairs Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
eth2_testnet_config Update boot-node and discovery (#1682) 2020-09-29 18:28:29 +10:00
eth2_wallet_manager Fix clippy warnings (#1385) 2020-07-23 14:18:00 +00:00
hashset_delay Shift author to sigma prime on some crates (#1440) 2020-08-04 02:31:41 +00:00
lighthouse_metrics Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
lighthouse_version Version bump and cargo update (#1683) 2020-09-29 18:29:04 +10:00
logging Log to file without json format (#1485) 2020-08-13 07:00:37 +00:00
lru_cache Keep track of failed head chains and prevent re-lookups (#1534) 2020-08-18 03:54:09 +00:00
slot_clock Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
test_random_derive Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
validator_dir Implement VC API (#1657) 2020-10-02 09:42:19 +00:00
warp_utils Implement VC API (#1657) 2020-10-02 09:42:19 +00:00
README.md Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00

eth2

Common crates containing eth2-specific logic.