Skip to content

Commit 5cc7310

Browse files
fix bug and ready for release (Layr-Labs#32)
* fix bug and ready for release * toc
1 parent a70e73a commit 5cc7310

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ EigenLayer CLI is used to manage core operator functionalities like local key ma
1717
* [Create keys](#create-keys)
1818
* [Import keys](#import-keys)
1919
* [List keys](#list-keys)
20+
* [Export keys](#export-keys)
2021
* [Operator Registration](#operator-registration)
2122
* [Sample config creation](#sample-config-creation)
2223
* [Registration](#registration)
@@ -189,6 +190,20 @@ eigenlayer operator keys list
189190

190191
It will show all the keys created with this command with the public key
191192

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+
```
192207
## Operator Registration
193208
### Sample config creation
194209

cmd/eigenlayer/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func main() {
2323

2424
app.Name = "eigenlayer"
2525
app.Usage = "EigenLayer CLI"
26-
app.Version = "0.5.0"
26+
app.Version = "0.5.1"
2727
app.Copyright = "(c) 2023 EigenLabs"
2828

2929
// Initialize the dependencies

pkg/operator/keys/export.go

-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ But if you want it to export from a different location, use --key-path flag`,
4444
keyType := c.String(KeyTypeFlag.Name)
4545

4646
keyName := c.Args().Get(0)
47-
if err := validateKeyName(keyName); err != nil {
48-
return err
49-
}
5047

5148
keyPath := c.String(KeyPathFlag.Name)
5249
if len(keyPath) == 0 && len(keyName) == 0 {

0 commit comments

Comments
 (0)