这是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

Problem

We want robust remote-wallet support in v0.23, but it will take all day to get the various backport patches through CI.

Summary of Changes

Backport all at once!

CriesofCarrots and others added 7 commits February 26, 2020 12:58
* 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>
* 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
* Use 44/501 key as ledger id

* Add error codes
* 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>
@CriesofCarrots
Copy link
Contributor Author

@t-nelson , could you take a quick scan over the cherry-pick of 8401 and anything else in your domain that you might be concerned about on backport to v0.23?

@CriesofCarrots
Copy link
Contributor Author

@mvines , not expecting you to review the particulars. More just looking for final approval on such a huge changeset.

@mvines
Copy link
Contributor

mvines commented Feb 26, 2020

Yep, do it!
image

Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked over #8384 and #8401, plus a quick perusal of the rest. LGTM!

@CriesofCarrots CriesofCarrots merged commit 1a4de4d into solana-labs:v0.23 Feb 27, 2020
@codecov
Copy link

codecov bot commented Feb 27, 2020

Codecov Report

Merging #8487 into v0.23 will decrease coverage by <.1%.
The diff coverage is 79%.

@@           Coverage Diff           @@
##           v0.23   #8487     +/-   ##
=======================================
- Coverage   80.6%   80.6%   -0.1%     
=======================================
  Files        251     251             
  Lines      55273   55529    +256     
=======================================
+ Hits       44588   44786    +198     
- Misses     10685   10743     +58

@CriesofCarrots CriesofCarrots deleted the v0.23-cli-remote-wallet-backports 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.

3 participants