Skip to content

Commit

Permalink
fix bug and ready for release (#32)
Browse files Browse the repository at this point in the history
* fix bug and ready for release

* toc
  • Loading branch information
shrimalmadhur authored Jan 9, 2024
1 parent a70e73a commit 5cc7310
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ EigenLayer CLI is used to manage core operator functionalities like local key ma
* [Create keys](#create-keys)
* [Import keys](#import-keys)
* [List keys](#list-keys)
* [Export keys](#export-keys)
* [Operator Registration](#operator-registration)
* [Sample config creation](#sample-config-creation)
* [Registration](#registration)
Expand Down Expand Up @@ -189,6 +190,20 @@ eigenlayer operator keys list

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

### Export keys
If you want to see the private key of the existing keys, you can use the below command.

```bash
eigenlayer operator keys export --key-type ecdsa [keyname]
```
This will also prompt for the password used to encrypt the key.

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.
You don't need to give the key name in that case.

```bash
eigenlayer operator keys export --key-type ecdsa --key-path [path]
```
## Operator Registration
### Sample config creation

Expand Down
2 changes: 1 addition & 1 deletion cmd/eigenlayer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func main() {

app.Name = "eigenlayer"
app.Usage = "EigenLayer CLI"
app.Version = "0.5.0"
app.Version = "0.5.1"
app.Copyright = "(c) 2023 EigenLabs"

// Initialize the dependencies
Expand Down
3 changes: 0 additions & 3 deletions pkg/operator/keys/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ But if you want it to export from a different location, use --key-path flag`,
keyType := c.String(KeyTypeFlag.Name)

keyName := c.Args().Get(0)
if err := validateKeyName(keyName); err != nil {
return err
}

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

0 comments on commit 5cc7310

Please sign in to comment.