Open armaniferrante opened 3 years ago
Also interested on hardware wallet support for the Javascript version of anchor.
BTW, solana cli DOES have ledger support.
This will be super useful. Would love to see this get implemented. Will be nice if someone can point me to some relevant code so I can give it a try.
Looking into this, it seems that the Solana CLI supports sending in a keypair URL that uniquely identifies a keypair in a hardware wallet the same way that you can use a keypair file path. (https://docs.solana.com/wallet-guide/hardware-wallets).
Given that we already support sending in the keypair path in the wallet under [provider] in anchor.toml, it seems to be the case that this use case is already possible in current anchor versions by sending in something like usb://..... instead of keypair path. I think it makes sense to close this issue, wdyt @armaniferrante ?
One should be able to run the
deploy
andupgrade
command for both programs and idls with a hardware wallet like ledger. I'd expect this to be dependent upon whether thesolana
cli has ledger support.