这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

@CriesofCarrots
Copy link
Contributor

@CriesofCarrots CriesofCarrots commented Feb 24, 2020

Problem

Solana apis erroneously return derivation path 44/501/0 as the solana root on a Ledger Wallet, when it should be the key at 44/501

Summary of Changes

Make path 44/501 accessible and use as Ledger base pubkey for identification purposes.
Update default DerivationPath to be account: None, change: None

Also, including some error code specifics that aren't recognized by the remote-wallet ledger api to be more efficient through CI.

Fixes #8408

garious
garious previously approved these changes Feb 24, 2020
@mergify mergify bot dismissed garious’s stale review February 25, 2020 00:03

Pull request has been modified.

@CriesofCarrots CriesofCarrots added the automerge Merge this Pull Request automatically once CI passes label Feb 25, 2020
@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label Feb 25, 2020
@solana-grimes
Copy link
Contributor

😱 New commits were pushed while the automerge label was present.

@solana-grimes solana-grimes removed CI Pull Request is ready to enter CI automerge Merge this Pull Request automatically once CI passes labels Feb 25, 2020
@CriesofCarrots CriesofCarrots added the automerge Merge this Pull Request automatically once CI passes label Feb 25, 2020
@solana-grimes
Copy link
Contributor

😱 New commits were pushed while the automerge label was present.

@solana-grimes solana-grimes removed the automerge Merge this Pull Request automatically once CI passes label Feb 25, 2020
@CriesofCarrots CriesofCarrots added the automerge Merge this Pull Request automatically once CI passes label Feb 25, 2020
@solana-grimes
Copy link
Contributor

💔 Unable to automerge due to CI failure

@solana-grimes solana-grimes removed the automerge Merge this Pull Request automatically once CI passes label Feb 25, 2020
@CriesofCarrots CriesofCarrots added the automerge Merge this Pull Request automatically once CI passes label Feb 25, 2020
@solana-grimes solana-grimes removed the automerge Merge this Pull Request automatically once CI passes label Feb 25, 2020
@solana-grimes
Copy link
Contributor

💔 Unable to automerge due to CI failure

@codecov
Copy link

codecov bot commented Feb 25, 2020

Codecov Report

Merging #8421 into master will decrease coverage by <.1%.
The diff coverage is 31.5%.

@@           Coverage Diff            @@
##           master   #8421     +/-   ##
========================================
- Coverage    80.2%   80.2%   -0.1%     
========================================
  Files         253     253             
  Lines       55975   55982      +7     
========================================
- Hits        44929   44925      -4     
- Misses      11046   11057     +11

@CriesofCarrots CriesofCarrots merged commit b775512 into solana-labs:master Feb 25, 2020
mergify bot pushed a commit that referenced this pull request Feb 25, 2020
* Use 44/501 key as ledger id

* Add error codes

(cherry picked from commit b775512)
solana-grimes pushed a commit that referenced this pull request Feb 25, 2020
CriesofCarrots added a commit to CriesofCarrots/solana that referenced this pull request Feb 26, 2020
* Use 44/501 key as ledger id

* Add error codes
CriesofCarrots added a commit that referenced this pull request Feb 27, 2020
…#8487)

* CLI: dynamic signing reboot (#8384)

* Add keypair_util_from_path helper

* Cli: impl config.keypair as a trait object

* SDK: Add Debug and PartialEq for dyn Signer

* ClapUtils: Arg parsing from pubkey+signers to Presigner

* Impl Signers for &dyn Signer collections

* CLI: Add helper for getting signers from args

* CLI: Replace SigningAuthority with Signer trait-objs

* CLI: Drop disused signers command field

* CLI: Drop redundant tests

* Add clap validator that handles all current signer types

* clap_utils: Factor Presigner resolution to helper

* SDK: `From` for boxing Signer implementors to trait objects

* SDK: Derive `Clone` for `Presigner`

* Remove panic

* Cli: dedup signers in transfer for remote-wallet ergonomics

* Update docs vis-a-vis ASK changes

* Cli: update transaction types to use new dynamic-signer methods

* CLI: Fix tests No. 1

what to do about write_keypair outstanding

* Work around `CliConfig`'s signer not necessarily being a `Keypair`

* CLI: Fix tests No. 2

* Remove unused arg

* Remove unused methods

* Move offline arg constants upstream

* Make cli signing fallible

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* Reinstate `create-stale-account` w/ seed test (#8401)

automerge

* CLI: collect and deduplicate signers (#8398)

* Rename (keypair util is not a thing)

* Add method to generate_unique_signers

* Cli: refactor signer handling and remote-wallet init

* Fixup unit tests

* Fixup intergation tests

* Update keypair path print statement

* Remove &None

* Use deterministic key in test

* Retain storage-account as index

* Make signer index-handling less brittle

* Cache pubkey on RemoteKeypair::new

* Make signer_of consistent + return pubkey

* Remove &matches double references

* Nonce authorities need special handling

* Make solana root key accessible on Ledger (#8421)

* Use 44/501 key as ledger id

* Add error codes

* Ledger key path rework (#8453)

automerge

* Ledger hardware wallet docs (#8472)

* Update protocol documentation

* Correct app-version command const

* Rough initial Ledger docs

* Add more docs

* Cleanup

* Add remote-wallet to docs TOC

Co-authored-by: Greg Fitzgerald <greg@solana.com>

* Add flag to confirm key on device

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
Co-authored-by: Greg Fitzgerald <greg@solana.com>
@CriesofCarrots CriesofCarrots deleted the ledger-id branch February 28, 2020 18:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ledger Wallet root key inaccessible

3 participants