50 Commits

Author SHA1 Message Date
Chris Hobcroft
5bb4954ce3 Rename eth2.0-deposit-cli to staking-deposit-cli, fixed typo (#3891) 2022-04-06 17:37:49 +05:30
Lion - dapplion
c5997e07d6 Implement standard keymanager API (#3522)
* Add keymanager backend

* Add keymanager server

* Add private local signer

* Fix comment typo

* Update test types

* Update package.json and license

* Hooking up the keymanager server - still manually registering a dummy api that returns static data

* Revert "Hooking up the keymanager server - still manually registering a dummy api that returns static data"

This reverts commit c3c220e4cf9455387cc665ef8dba5e319dbc2d95.

* using 9657 as default port for key manager server. Also not overriding defaults with undefined

* starting keymanager server also in dev

* First stab at implementing deleting keys from persistant storage

* updating parsing of slashing data to make POST request work

* leaving some todo

* switching deleting file to async. Still need to take care of logging in case deleting fails

* first dash at persisting keys for later restarts

* Adding (local signer for now) and removing of signer in ValidatorStore.

* deleting and adding working again with remote signer merged in

* fix lint errors

* fix lint errors

* fix lint errors - finally

* temp

* Moving keymanager to its own package to make the validator package nodejs agnostic

* track test file

* removing some outdated TODOs

* adding the generic server test for keymanager api

* removing an unused function and two empty test files

* keeping inline with existing pattern of using _config when config is not used

* Added first test for KeymanagerApi#listKeys

* Added test for KeymanagerApi#importKeystores

* Added test for KeymanagerApi#deleteKeystores

* move lock file to utils

* making sure keystore are added and deleted in all scenarios

* temp making some assertion less strict

* adding back matchers in the test

* removing e2e test in script since none yet

* On delete remove key from internal list of keys known my the keymanager

* first shot at adding bearer authentication for keymanager server

* Using async pattern again so as to fix test that only fails on ci

* log location of keymanager's bearer token on startup

* Undoing the addition of lockfile to lodestar-util as it is a package that should be filesystem/nodejs agnostic

* importing lockfile in test

* Stubbing out the keystore. All tests should now pass on CI

* remove duplicated start of validator

* When using dev command, make it actually possible to not run a validator with a beacon node

* Passing in the directory where the keymanager's bearer token will be stored

* Properly setting the path to keystore file to be deleted

* adding methods to remove signer from various duties, exposing and calling in keymanager.

* Added tests for BlockDutiesService#remove

* fix linting errors

* Added tests for AttestationDutiesService#remove

* Added tests for SyncCommitteeDutiesService#remove

* Added test to directly test IndicesService

* update test to confirm unremoved pubkey is not affected by the remove call

* Added the scaffolding to run e2e test that makes use of the keymanager

* shut down node and validators in keymanager e2e test

* Making sure by default bearer authentication is used for keymanager api

* Adding e2e for keymanager api

* adding some eslint ignore comments

* Fix linting errors

* Processing some todos

* Process left TODOs

* log a warning if kemanager started without auth

* fix compilation error when running sim:singleThread test

* import all modules from same package in same line

* fix compilation error due to import

* Added logger to KeymanagerApi

* Fixed compilation error in key managers e2e test due to changes that added logger to KeymanagerApi

* removing TODO after deciding to action needed

* removing download-spec-tests from keymanager-server script

* test request is denied if no auth for keymanager

* trying closing keymanager before beacon node

* setting port right

* Some improvement to the keymanager e2e test

* Added signing to e2e test for key manager

* Added support for interactions with remote signer validators. Removed some unit tests in place of e2e

* optimise imports

* optimize some tests assertion

* minor correction to capitalisation

* register callback to delete locks in same loop that adds to signers

* fix compilation error

* adding lockfile as dependency following alphabetical order

* Improving the registering of shutdown callbacks

* moving keymanager options out of beacon node options

* having back default value for startValidators flag

* Removed unnecessary comment

* removed the parse-numbers setting

* Switching to making imported keystore path deterministic by pubkey

* Using Array constructor with length is more efficient

* Move some keystore test utility function to a seperate file

* Removed some more suppress comments

* Removed unnecessary dependency

* using 5062 as default port for keymanager

* Improve keymanager and keymanager e2e tests

* Removed unnecessary test utility function

* Removed the use of mapvalues

* Not exposing duties

* Minor comment improvement

* Have slashing protection be part of validator and use that in the key manager

* Remove getSignerLocal

* switch use of forEach for for-of

* revert changes to local.md

* optimise import order

* Moved typing info for lockfile to devDependencies

* Some renaming

* replace join with path.join for clarity

* setting derivation path

* Introduced a utility for keystore file, that is used both in importing and deleting keys

* having duties service classes back to private

* re-adding test:unit

* switching to using path.join

* Introduced a more robust cleanup for lightclient.test.ts

* import optimisation

* putting all closing of nodes/validators into afterEach call

* temp skip keymanager e2e test

* switching node port back to 9596. It should not be any problem as long as all tests shuts down node properly

* switch test port to 19596 see if this fixes tests

* Immediately register clean up for servers

* Temp skip a failing test

* Using tmp dir for keeping bearer token for test cases where keymanager needs bearer token

* move the lockfile to keymanager

* Added tests to cover bearer token authentication flow

* Setting derivationPath back to empty string. Implementing getting derivationPath would be done later

* Fix type error

Co-authored-by: Cayman <caymannava@gmail.com>
Co-authored-by: Dadepo Aderemi <dadepo@gmail.com>
2022-04-01 19:35:40 +05:30
Phil Ngo
6bd0310a96 Removing eth2 mentions in documentation and fix links (#3848)
* Remove architecture.md from docs

* Update mkdocs.yml to remove architecture.md

* Remove architecture link from readme

* Remove architecture.md links from depgraph.md

* Remove architecture overview from readme

* Remove eth2 terminology on contributing.md

* remove eth2 references from docs
2022-03-13 17:31:26 -05:00
g11tech
27c5d6bb8b Group and refactor the wss options (#3750)
* Grouping and refactoring the wss options

* rename the group and options

* weak subjectivity usage doc

* reverting change in the args name so that the change is not breaking
2022-02-17 09:48:06 +05:30
g11tech
1c86d16113 Cleanup discontinued pyrmont network (#3740) 2022-02-10 13:57:20 -06:00
Lion - dapplion
9a58ce3c8b Run prettier on entire repo (#3720) 2022-02-07 09:57:26 -06:00
Dadepo Aderemi
ad28754cf3 Updated documentation to include the needed network.connectToDiscv5Bootnodes cli flag 2022-02-04 12:21:36 +01:00
Dadepo Aderemi
dcacf7f894 Removed cli flags not needed when using dev command in the example 2022-02-04 09:26:02 +01:00
Dadepo Aderemi
6e79bc50c9 updated the documentation to include setting enr.ip for first node 2022-02-02 23:44:08 +01:00
Dadepo Aderemi
a8efda70ab Ensure the values passed via network.discv5.bootEnrs are connected to on startup. Updated the documentation of the dev command 2022-01-27 16:15:33 +01:00
dadepo
240085facb Updated outdated portion of the documentation regarding starting a beacon chain (#3557) 2021-12-29 19:27:27 +01:00
Filipe Medeiros
0c9c43c995 fix: docs using old syntax (#3340) 2021-10-08 06:58:37 -05:00
Cayman
1e3b144b17 Update docs / READMEs (#2829) 2021-07-12 08:48:26 -05:00
dapplion
677b2fd434 Run prettier on all files 2021-03-07 12:50:58 +01:00
3xtr4t3rr3str14l
9a0a8d7e8c remove dead testnet mentions 2021-01-19 15:13:51 -06:00
3xtr4t3rr3str14l
ffcdaad5ad testnet-->network in docs and docker-compose 2021-01-18 12:53:22 -06:00
3xtr4t3rr3str14l
a2af180a57 cleaning up some of the formatting of user docs 2020-12-17 18:22:42 -06:00
3xtr4t3rr3str14l
57073c8bb0 Merge branch 'P0/user-docs' of https://github.com/ChainSafe/lodestar into P0/user-docs 2020-12-16 15:21:14 -06:00
3xtr4t3rr3str14l
ce62221984 typo 2020-12-16 15:19:43 -06:00
3xtr4t3rr3str14l
6a49805475 Update docs/usage/index.md typo
Co-authored-by: Marin Petrunić <mpetrunic@users.noreply.github.com>
2020-12-16 14:46:52 -06:00
3xtr4t3rr3str14l
c84db447f1 refresh user guide docs 2020-12-15 16:33:55 -06:00
dapplion
92d1489677 Run lodestar with node directly not yarn 2020-10-05 22:52:07 +02:00
3xtr4t3rr3str14l
2abfa3cc63 minor docs tweaks 2020-08-17 15:13:48 -05:00
Cayman
2f1922dd3b Merge pull request #1368 from LamboshiNakaghini/patch-2
Update key-management.md
2020-08-07 14:20:29 -05:00
Lamboshi
05a933bf2d Update key-management.md
Added info on importing keys from deposit launchpad.
2020-08-07 14:37:04 -04:00
Lamboshi
1086f78d6c Update medalla.md
Added info for validator start up.
2020-08-07 14:20:53 -04:00
dapplion
116a7d7c00 Fix broken install links 2020-08-04 11:12:06 +02:00
Cayman
12afa3765d Update docs 2020-08-02 18:56:40 -05:00
dapplion
db078a9de0 Remove Altona mention in Medalla docs 2020-08-01 20:56:16 +02:00
dapplion
98d6c52abd Add Medalla testnet docs 2020-07-31 18:58:26 +02:00
dapplion
2abd9acec3 Remove hardcoded config file from altona docs 2020-07-30 15:06:37 +02:00
Cayman
6eb17bbb3b Merge pull request #1231 from ChainSafe/dapplion/fix-account-docs
Review account docs comments
2020-07-27 10:54:20 -05:00
dapplion
c45c5fe29b Explicitly use the --rootDir flag in the docs 2020-07-27 12:55:27 +02:00
Marin Petrunić
a830d3d034 Merge pull request #1210 from ChainSafe/dapplion/simplify-cli-options
Refactor CLI option handling
2020-07-27 11:55:07 +02:00
dapplion
971dacfb62 Fix default rootDir default value 2020-07-26 22:57:35 +02:00
dapplion
8c8a39354b Clarify the role of --name option in 'lodestar account wallet create' 2020-07-26 22:11:47 +02:00
dapplion
437291c240 Don't use $rootDir in docs, but its default value 2020-07-26 22:08:36 +02:00
dapplion
94ec063ae4 Fix account docs directory name holding validator keystores 2020-07-26 22:05:59 +02:00
dapplion
7cee906ccf Un-nest chain.params from chain 2020-07-25 21:21:53 +02:00
dapplion
34ac391ecc Un-nest genesisStateFile from chain and make it a beacon cmd option 2020-07-25 20:48:44 +02:00
dapplion
ec7f8470f5 Extend Prometheus and Grafana docs 2020-07-22 17:26:38 +02:00
3xtr4t3rr3str14l
29350cf90a default port update 2020-07-21 19:39:59 -05:00
3xtr4t3rr3str14l
4819ddd55c formatting 2020-07-21 14:50:35 -05:00
3xtr4t3rr3str14l
82827d9093 prometheus-grafana.md 2020-07-21 14:11:48 -05:00
3xtr4t3rr3str14l
2066933c10 usage doc for setting up prometheus and grafana 2020-07-21 13:50:58 -05:00
dapplion
bc53feb66c Add key management docs 2020-07-20 22:57:15 +02:00
dapplion
e184d2c600 Update testnet usage docs 2020-07-14 23:31:25 +02:00
dapplion
6eaec4dd91 Fix docs relative links 2020-06-26 15:31:59 +02:00
Patrick Michot
2fc1a30194 lodecli -> lodestar 2020-06-25 13:36:55 -05:00
dapplion
a654b93e05 Bootstrap mkdocs 2020-06-21 18:45:54 +02:00