Skip to content

Commit 7724766

Browse files
update eigenlayer cli docs to refer docs website (Layr-Labs#41)
1 parent ca72132 commit 7724766

File tree

1 file changed

+16
-146
lines changed

1 file changed

+16
-146
lines changed

README.md

+16-146
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,10 @@ EigenLayer CLI is used to manage core operator functionalities like local key ma
1010
* [EigenLayer CLI](#eigenlayer-cli)
1111
* [Supported Operating Systems](#supported-operating-systems)
1212
* [Install `eigenlayer` CLI using a binary](#install-eigenlayer-cli-using-a-binary)
13-
* [Installing in custom location](#installing-in-custom-location)
13+
* [Installing in a custom location](#installing-in-a-custom-location)
1414
* [Install `eigenlayer` CLI using Go](#install-eigenlayer-cli-using-go)
1515
* [Install `eigenlayer` CLI from source](#install-eigenlayer-cli-from-source)
16-
* [Create or Import Keys](#create-or-import-keys)
17-
* [Create keys](#create-keys)
18-
* [Import keys](#import-keys)
19-
* [List keys](#list-keys)
20-
* [Export keys](#export-keys)
21-
* [Operator Registration](#operator-registration)
22-
* [Sample config creation](#sample-config-creation)
23-
* [Registration](#registration)
16+
* [Documentation](#documentation)
2417
<!-- TOC -->
2518

2619
## Supported Operating Systems
@@ -107,142 +100,19 @@ sudo cp $GOPATH/bin/eigenlayer /usr/local/bin/
107100
sudo cp eigenlayer-cli/build/eigenlayer /usr/local/bin/
108101
```
109102

110-
## Create or Import Keys
111-
### Create keys
103+
## Documentation
104+
Please refer to the full documentation [here](https://docs.eigenlayer.xyz/operator-guides/operator-installation).
112105

113-
You can create encrypted ecdsa and bls keys using the cli which will be needed for operator registration and other onchain calls
106+
Links to specific sections are provided below.
107+
* [Create Keys](https://docs.eigenlayer.xyz/operator-guides/operator-installation#create-keys)
108+
* [Import Keys](https://docs.eigenlayer.xyz/operator-guides/operator-installation#import-keys)
109+
* [List Keys](https://docs.eigenlayer.xyz/operator-guides/operator-installation#list-keys)
110+
* [Export Keys](https://docs.eigenlayer.xyz/operator-guides/operator-installation#export-keys)
111+
* [Fund Wallet with ETH](https://docs.eigenlayer.xyz/operator-guides/operator-installation#fund-ecdsa-wallet)
112+
* [Register Operator](https://docs.eigenlayer.xyz/operator-guides/operator-installation#registration)
113+
* [Operator Status](https://docs.eigenlayer.xyz/operator-guides/operator-installation#checking-status-of-registration)
114+
* [Metadata Updates](https://docs.eigenlayer.xyz/operator-guides/operator-installation#metadata-updates)
115+
* [Frequently Asked Questions](https://docs.eigenlayer.xyz/operator-guides/faq)
116+
* [Troubleshooting](https://docs.eigenlayer.xyz/operator-guides/troubleshooting)
114117

115-
```bash
116-
eigenlayer operator keys create --key-type ecdsa [keyname]
117-
eigenlayer operator keys create --key-type bls [keyname]
118-
```
119-
120-
- `keyname` - This will be the name of the created key file. It will be saved as `<keyname>.ecdsa.key.json` or `<keyname>.bls.key.json`
121-
122-
This will prompt a password which you can use to encrypt the keys. Keys will be stored in the local disk and will be shown once keys are created.
123-
It will also show the private key only once, so that you can back it up in case you lose the password or keyfile.
124-
125-
Example:
126-
127-
Input command
128-
129-
```bash
130-
eigenlayer operator keys create --key-type ecdsa test
131-
```
132-
133-
Output
134-
This outputs the public key and the Ethereum address associated with the key. This will also be your operator address.
135-
```bash
136-
? Enter password to encrypt the ecdsa private key:
137-
ECDSA Private Key (Hex): b3eba201405d5b5f7aaa9adf6bb734dc6c0f448ef64dd39df80ca2d92fca6d7b
138-
Please backup the above private key hex in safe place.
139-
140-
Key location: /home/ubuntu/.eigenlayer/operator_keys/test.ecdsa.key.json
141-
Public Key hex: f87ee475109c2943038b3c006b8a004ee17bebf3357d10d8f63ef202c5c28723906533dccfda5d76c1da0a9f05cc6d32085ca1af8aaab5a28171474b1ad0aa68
142-
Ethereum Address 0x6a8c0D554a694899041E52a91B4EC3Ff23d8aBD5
143-
```
144-
145-
146-
### Import keys
147-
148-
You can import existing ecdsa and bls keys using the cli which will be needed for operator registration and other onchain calls
149-
150-
```bash
151-
eigenlayer operator keys import --key-type ecdsa [keyname] [privatekey]
152-
eigenlayer operator keys import --key-type bls [keyname] [privatekey]
153-
```
154-
155-
- `keyname` - This will be the name of the imported key file. It will be saved as `<keyname>.ecdsa.key.json` or `<keyname>.bls.key.json`
156-
- `privatekey` - This will be the private key of the key to be imported.
157-
- For ecdsa key, it should be in hex format
158-
- For bls key, it should be a large number
159-
160-
Example:
161-
162-
Input command
163-
164-
```bash
165-
eigenlayer operator keys import --key-type ecdsa test 6842fb8f5fa574d0482818b8a825a15c4d68f542693197f2c2497e3562f335f6
166-
```
167-
168-
Output
169-
170-
```bash
171-
? Enter password to encrypt the ecdsa private key: *******
172-
ECDSA Private Key (Hex): 6842fb8f5fa574d0482818b8a825a15c4d68f542693197f2c2497e3562f335f6
173-
Please backup the above private key hex in safe place.
174-
175-
Key location: /home/ubuntu/.eigenlayer/operator_keys/test.ecdsa.key.json
176-
Public Key hex: a30264c19cd7292d5153da9c9df58f81aced417e8587dd339021c45ee61f20d55f4c3d374d6f472d3a2c4382e2a9770db395d60756d3b3ea97e8c1f9013eb1bb
177-
Ethereum Address 0x9F664973BF656d6077E66973c474cB58eD5E97E1
178-
```
179-
180-
This will prompt a password which you can use to encrypt the keys. Keys will be stored in the local disk and will be shown once keys are created.
181-
It will also show the private key only once, so that you can back it up in case you lose the password or keyfile.
182-
183-
### List keys
184-
185-
You can also list your created keys using
186-
187-
```bash
188-
eigenlayer operator keys list
189-
```
190-
191-
It will show all the keys created with this command with the public key
192-
193-
### Export keys
194-
If you want to see the private key of the existing keys, you can use the below command.
195-
196-
```bash
197-
eigenlayer operator keys export --key-type ecdsa [keyname]
198-
```
199-
This will also prompt for the password used to encrypt the key.
200-
201-
If your keys is not in the default location (`~/.eigenlayer/operator_keys`), you can give the path to the key file using `--key-path` flag.
202-
You don't need to give the key name in that case.
203-
204-
```bash
205-
eigenlayer operator keys export --key-type ecdsa --key-path [path]
206-
```
207-
## Operator Registration
208-
### Sample config creation
209-
210-
You can create the config files needed for operator registration using the below command:
211-
212-
```bash
213-
eigenlayer operator config create
214-
```
215-
216-
It will create two files: `operator.yaml` and `metadata.json`
217-
After filling in the details in `metadata.json`, please upload this into a publicly accessible location and fill that URL in `operator.yaml`.
218-
A valid metadata URL is required for successful registration.
219-
A sample yaml [operator.yaml](pkg/operator/config/operator-config-example.yaml) is provided for reference.
220-
221-
A public metadata URL is required to register the operator.
222-
After creating and filling the [metadata](pkg/operator/config/metadata-example.json) file, you can it to a publicly accessible location and give the URL in the config file.
223-
You are also required to upload the image of the operator to a publicly accessible location and give the URL in the metadata file. We only support `.png` images for now.
224-
225-
226-
### Registration
227-
>ECDSA and BLS keys are required for operator registration.
228-
You may choose to either [create](#create-keys) your own set of keys using the EigenLayer CLI (recommended for first time users) or [import](#import-keys) your existing keys (recommended for advanced users who already have keys created).
229-
230-
You can register your operator using the command below.
231-
232-
```bash
233-
eigenlayer operator register operator.yaml
234-
```
235-
236-
Make sure that if you use `local_keystore` as the signer, you give the path to the keys created in the above section.
237-
238-
After you complete the registration, you can check the registration status of your operator using
239-
240-
```bash
241-
eigenlayer operator status operator.yaml
242-
```
243-
244-
You can also update the operator metadata using
245-
246-
```bash
247-
eigenlayer operator update operator.yaml
248-
```
118+
If you see any issues in documentation please create an issue or PR [here](https://github.com/Layr-Labs/eigenlayer-docs)

0 commit comments

Comments
 (0)