Refactor SignerSource to expose DerivationPath to other kinds of signers (backport #16933) (#16940)

* Refactor SignerSource to expose DerivationPath to other kinds of signers (#16933)

* One use statement

* Add stdin uri scheme

* Convert parse_signer_source to return Result

* A-Z deps

* Convert Usb data to Locator

* Pull DerivationPath out of Locator

* Wrap SignerSource to share derivation_path

* Review comments

* Check Filepath existence, readability in parse_signer_source

(cherry picked from commit d6f30b7537)

# Conflicts:
#	Cargo.lock
#	clap-utils/src/memo.rs
#	remote-wallet/src/locator.rs
#	sdk/Cargo.toml

* Fix conflicts

* Fix legacy compile test

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
mergify[bot]
2021-04-29 17:14:37 +00:00
committed by GitHub
parent 9cca79090c
commit 41ab35fc9b
15 changed files with 524 additions and 443 deletions

View File

@@ -3328,6 +3328,7 @@ dependencies = [
"num-derive 0.3.0",
"num-traits",
"pbkdf2 0.6.0",
"qstring",
"rand 0.7.3",
"rand_chacha 0.2.2",
"rustc_version",
@@ -3345,6 +3346,7 @@ dependencies = [
"solana-program 1.5.20",
"solana-sdk-macro 1.5.20",
"thiserror",
"uriparse",
]
[[package]]