mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-05 10:32:20 +00:00
6ea3bc5e52
## 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
25 lines
806 B
TOML
25 lines
806 B
TOML
[package]
|
|
name = "environment"
|
|
version = "0.1.2"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
tokio = { version = "0.2.21", features = ["full"] }
|
|
slog = { version = "2.5.2", features = ["max_level_trace"] }
|
|
sloggers = "1.0.0"
|
|
types = { "path" = "../../consensus/types" }
|
|
eth2_config = { "path" = "../../common/eth2_config" }
|
|
eth2_testnet_config = { path = "../../common/eth2_testnet_config" }
|
|
logging = { path = "../../common/logging" }
|
|
slog-term = "2.5.0"
|
|
slog-async = "2.5.0"
|
|
ctrlc = { version = "3.1.4", features = ["termination"] }
|
|
futures = "0.3.5"
|
|
parking_lot = "0.11.0"
|
|
slog-json = "2.3.0"
|
|
exit-future = "0.2.0"
|
|
lazy_static = "1.4.0"
|
|
lighthouse_metrics = { path = "../../common/lighthouse_metrics" }
|
|
discv5 = { version = "0.1.0-alpha.12", features = ["libp2p"] }
|