Skip to content

Commit

Permalink
[baking-with-ledger] handles feedback (#526)
Browse files Browse the repository at this point in the history
* Include command from `Step 2: Set up a baker account`

Because readers were confused, the `Set up a baker account` step was no longer clear enough.

* Place the baking with consensus key patern after the patern without

Because it seems bakers mostly have main key on their ledger

* fixup! Ajinkya's suggestions

Co-authored-by: Ajinkya  <[email protected]>

---------

Co-authored-by: Ajinkya <[email protected]>
  • Loading branch information
spalmer25 and ajinkyaraj-23 authored Jan 28, 2025
1 parent 20b3a45 commit 494004f
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions docs/tutorials/bake-with-ledger/run-baker.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,44 @@ Now that the Ledger baking key is set up, you can follow the steps of [Run a Tez

Complete the [Step 1: Run an Octez node](/tutorials/join-dal-baker/run-node) of the tutorial, and make following changes in [Step 2: Set up a baker account](/tutorials/join-dal-baker/prepare-account).

- If you **want to use a consensus key**, instead of generating it, use the Ledger key. To do so, import it from the `octez-signer` remote with the following command:
You can use your Ledger key as your main baker key or you could use Ledger key as consensus key.

- To **use the Ledger key as your main baker key**, import it from the `octez-signer` remote with the following command:

```bash
octez-client import secret key consensus_key remote:tz...
octez-client import secret key my_baker remote:tz...
```

> Replace the `tz...` with the public key hash of your Ledger baking key.

You can then continue to set up your baker account.
Run and sign the following operations to set up your baker. You will need to use the `Tezos Wallet (XTZ)` application.
Quit the `Tezos Baking` application and open the `Tezos Wallet (XTZ)` application. Then set up your baker.

By registering your baker as a delegate with the ledger key as the consensus key, the baker daemon will sign using the Ledger.
```bash
octez-client import secret key my_baker remote:tz...
octez-client register key my_baker as delegate
octez-client stake 6000 for my_baker
```

Your baker account is now set up and ready to bake using the Ledger.

- If you **don't want to use a consensus key**, use your Ledger key directly as a baker. Import it from the `octez-signer` remote with the following command:
- If you **want to use your Ledger key as a consensus key**, import it from the `octez-signer` remote with the following command:

```bash
octez-client import secret key my_baker remote:tz...
octez-client import secret key consensus_key remote:tz...
```

> Replace the `tz...` with the public key hash of your Ledger baking key.

In that case, to be able to sign the operations required to set up your baker, you need to use the `Tezos Wallet (XTZ)` application.
Quit the `Tezos Baking` application and open the `Tezos Wallet (XTZ)` application.
With Ledger key imported as consensus key, you will need to generate/set up your baker key separately. You can then continue to set up your baker account. See the following commands:

```bash
octez-client gen keys my_baker
octez-client register key my_baker as delegate with consensus key consensus_key
octez-client stake 6000 for my_baker
```

By registering your baker as a delegate with the ledger key as the consensus key, the baker daemon will sign using the Ledger.

## Before running the Octez baking daemon

Expand Down

0 comments on commit 494004f

Please sign in to comment.