Skip to content

Commit ac58d9f

Browse files
authored
Merge pull request #569 from zigbee-alliance/ledger-nano-instruction
Add instructions on how to use the Ledger Nano with DCL
2 parents 16f84f9 + d4a75bd commit ac58d9f

File tree

5 files changed

+68
-4
lines changed

5 files changed

+68
-4
lines changed

.github/.wordlist.txt

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ lldbout
3636
localnet
3737
MainNet
3838
multiclient
39+
Nano
3940
NotFound
4041
ol
4142
openapi

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,4 @@ the following instructions from [how-to.md](docs/how-to.md) can be used for ever
229229
- [Pool Upgrade How To Guide](docs/pool-upgrade-how-to.md)
230230
- [CometBFT](https://cometbft.com/)
231231
- [Cosmos SDK](https://cosmos.network/sdk)
232+
- [Ledger Nano Support](docs/ledger-nano.md)

docs/design/noc-root-cert-design.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A Vendor with DCL write privilege can submit a transaction to remove a NOC root
1313

1414
## Certificate Schema
1515

16-
To distinguesh NOC root certificates from others, an `isNOC` boolean field will be added to the [certificates](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/certificate.proto) schema
16+
To distinguesh NOC root certificates from others, an `isNOC` boolean field will be added to the [certificates](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/master/proto/zigbeealliance/distributedcomplianceledger/pki/certificate.proto) schema.
1717

1818
## Transactions
1919

docs/ledger-nano.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Ledger Nano Support
2+
3+
## Prepare Ledger Nano Device to Use with DCL
4+
5+
### Step 1: Install Ledger Live
6+
7+
Download and install Ledger Live: Go to the [Ledger Live download page](https://www.ledger.com/ledger-live) and select the version suitable for your operating system. Follow the on-screen instructions to install it.
8+
9+
<!-- markdown-link-check-disable -->
10+
### Step 2: Set Up Your Ledger Device
11+
12+
Initialize Your Ledger Device: If this is your first time using your Ledger, you will need to configure it. Follow the instructions to choose a PIN and securely write down the mnemonic seed phrase that appears. This seed is crucial for recovery and is compatible with DCL. Detailed instructions are available [here](https://support.ledger.com/hc/en-us/articles/4416927988625-Set-up-your-Ledger-Nano-S-Plus?docs=true).
13+
14+
### Step 3: Install the Cosmos (ATOM) app on your Ledger device
15+
16+
To use the Ledger Nano with DCL, you first need to install the Cosmos (ATOM) application. Connect your Ledger device to your computer, open Ledger Live, and navigate to the 'Manager' tab. Allow the manager on your Ledger device, find the Cosmos (ATOM) app in the catalog, and click 'Install'. For detailed instructions, visit the [Cosmos (ATOM) documentation page](https://support.ledger.com/hc/en-us/articles/360013713840-Cosmos-ATOM?docs=true).
17+
<!-- markdown-link-check-enable -->
18+
19+
## Using Ledger Device with DCL CLI
20+
21+
To use the DCL (dcld) command line interface, it must first be installed on your computer. You can find the installation instructions in the [Quick start guide](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/50ef77243b49764f474e545cc4be2beee4793ed0/docs/quickStartGuide.adoc#L3).
22+
23+
### Add your Ledger Key
24+
25+
1. Connect and unlock your Ledger device.
26+
2. Open the Cosmos app on your Ledger.
27+
3. Add a new account in dcld using your Ledger key. Enter the following command:
28+
29+
```bash
30+
dcld keys add <keyName> --ledger
31+
```
32+
33+
4. Approve the addition of the account on your Ledger device within the Cosmos app.
34+
5. Verify the account has been added by using the following command:
35+
36+
```bash
37+
dcld keys show <keyName>
38+
```
39+
40+
### Signing and Sending Transactions
41+
42+
To sign and send transactions using your Ledger Nano device, follow these steps:
43+
44+
1. Ensure your Ledger device is unlocked and that the Cosmos app is open.
45+
2. Initiate the transaction using the DCL CLI. Replace <transaction_command> with the specific command for your transaction:
46+
47+
```bash
48+
dcld <transaction_command> --from <keyName> --ledger
49+
```
50+
51+
3. Review and confirm the transaction details on your Ledger device. Carefully inspect each aspect of the transaction JSON displayed on the screen.
52+
53+
## Using DCL with a Web Browser
54+
55+
This section explains how to use a Ledger device to sign DCL transactions via the web UI using the Keplr wallet.
56+
57+
- Install the Keplr Wallet as a browser extension from the official Keplr website, available for Chrome or other supported browsers.
58+
- Connect your Ledger device to your computer and ensure the Cosmos app is open on the device.
59+
- Click on the Keplr extension icon and select "Connect Hardware Wallet." If you have previously created a wallet in Keplr, you will need to add a new wallet before selecting "Connect Hardware Wallet" again.
60+
- Confirm that your Ledger device is unlocked with the Cosmos app active. Then, follow the on-screen instructions provided by the Keplr pop-up.
61+
62+
Now, you are ready to sign transactions using your Ledger Nano and the Keplr wallet. Each time you initiate a transaction, you will need to confirm it on your Ledger device following prompts from the Keplr interface.

docs/quickStartGuide.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ Please refer to https://github.com/zigbee-alliance/distributed-compliance-ledger
99
=== DCL CLI setup
1010
These steps will configure `dcld` on Ubuntu platform.
1111

12-
==== GOLANG 1.3+
13-
Make sure you have goLang 1.3+ installed.
12+
==== GOLANG 1.20+
13+
Make sure you have goLang 1.20+ installed.
1414
Ubuntu
1515
https://khongwooilee.medium.com/how-to-update-the-go-version-6065f5c8c3ec
1616
MacOS
1717
https://www.jajaldoang.com/post/how-to-update-golang
1818

1919
==== Download Pre Compiled `dcld`
20-
A pre-built version of DCL for Ubuntu: https://github.com/zigbee-alliance/distributed-compliance-ledger/releases/download/v0.12.0/dcld, so no need to clone the repo and run make at all.
20+
A pre-built version of DCL for Ubuntu can be found at: https://github.com/zigbee-alliance/distributed-compliance-ledger/releases/download/{latest}/dcld, so no need to clone the repository and run 'make' command at all. Ensure to replace {latest} with the latest version of dcld.
2121

2222
==== Download DCL Source Code from repo
2323
.DCL CLI Build

0 commit comments

Comments
 (0)