Canto-Network / Canto

Layer-1 blockchain powered by Free Public Infrastructure
GNU Lesser General Public License v3.0
83 stars 80 forks source link

generating keys with --ledger doesn't work #77

Open okanisis opened 1 year ago

okanisis commented 1 year ago

Not exactly sure what app to have on the ledger as there is a Tendermint Ledger App but it apparently doesn't exist and then the Cosmos (ATOM) app which I also tried but doesn't work. I tried Ethereum app thinking it would work given canto uses geth evm but nothing still.

USB Ledger recognized on system:

[21880.630266] usb 1-1: USB disconnect, device number 26
[21880.928240] usb 1-1: new full-speed USB device number 27 using xhci_hcd
[21881.144524] usb 1-1: New USB device found, idVendor=2c97, idProduct=1015, bcdDevice= 2.01
[21881.144528] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[21881.144530] usb 1-1: Product: Nano S
[21881.144531] usb 1-1: Manufacturer: Ledger
[21881.144532] usb 1-1: SerialNumber: 0001
[21881.184784] hid-generic 0003:2C97:1015.0022: hiddev97,hidraw4: USB HID v1.11 Device [Ledger Nano S] on usb-0000:00:14.0-1/input0
[21881.218049] hid-generic 0003:2C97:1015.0023: hiddev98,hidraw5: USB HID v1.11 Device [Ledger Nano S] on usb-0000:00:14.0-1/input1

Trying to add keys with --ledger flag and error:

% cantod keys add myLedger --ledger
Error: --ledger flag passed: Ledger device is currently not supported

I built cantod with go using the following tags: go build -tags "netgo,ledger,cleveldb" on Arch Linux.

okanisis commented 1 year ago

I propose the possibility of officially integrating with Ledger-Live:

https://developers.ledger.com/docs/coin/general-process/

chalabi2 commented 1 year ago

The issue is that cosmos keys use the secp256k1 standard but evmos and canto both use "@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey. Keplr has a real janky solution for selecting evmos on keplr then selecting eth on your ledger.

okanisis commented 9 months ago

The issue is that cosmos keys use the secp256k1 standard but evmos and canto both use "@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey. Keplr has a real janky solution for selecting evmos on keplr then selecting eth on your ledger.

https://developers.ledger.com/docs/plugin for any ledger app devs interested