Skip to content

Commit

Permalink
docs: add instructions for regenerating memo (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
luandy64 committed Feb 20, 2024
1 parent 301cdb6 commit d3f9ba4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,45 @@ as it's effectively not used for signing/verifying.
- Some bytes of your private key might change, due to their random block.
The key is effectively the same though.

### Restoring the memo

We can use `ssh-keygen` to add a memo to our restored keys.

If you ran the following command to restore a key:

```shell
melt restore ./my-key --seed "witness shoe deputy celery debate myth \
title sign dish bone powder velvet reveal midnight blast mobile \
valid cycle announce valid item interest cinnamon cake"
Restoring key to ./my-key and ./my-key.pub...
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:

Successfully restored keys to ./my-key and ./my-key.pub
```

You can verify that the memo is not there:

```shell
cat my-key.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKThPEoe20Wi5zAfyI+gTrTMnODbRtYtQRUZYIvfV19C
```

Run this command on the restored key:

```shell
ssh-keygen -c -C melted-again@charm.sh -f ./my-key
Old comment:
Comment 'melted-again@charm.sh' applied
```

And check to see your memo is set:

```shell
cat my-key.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKThPEoe20Wi5zAfyI+gTrTMnODbRtYtQRUZYIvfV19C melted-again@charm.sh
```

## Feedback

We鈥檇 love to hear your thoughts on this project. Feel free to drop us a note!
Expand Down

0 comments on commit d3f9ba4

Please sign in to comment.