Wrap derivation_path::DerivationPath (backport #16609) (#16650)

* Wrap derivation_path::DerivationPath (#16609)

* Replace custom DerivationPath impl

* Add method to parse full-path from str with hardening

* Convert Bip44 to trait

* Hoist more work on derivation-path

* Privatize Bip44 trait

(cherry picked from commit 185bbf2db5)

# Conflicts:
#	programs/bpf/Cargo.lock

* Fix conflict

* Make derivation-path optional for legacy bpf build

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-20 22:14:56 +00:00
committed by GitHub
parent 7f2977a3b0
commit 80d6a5aa9d
6 changed files with 257 additions and 194 deletions

View File

@@ -651,6 +651,15 @@ dependencies = [
"rayon",
]
[[package]]
name = "derivation-path"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "193388a8c8c75a490b604ff61775e236541b8975e98e5ca1f6ea97d122b7e2db"
dependencies = [
"failure",
]
[[package]]
name = "derivative"
version = "2.1.3"
@@ -3318,6 +3327,7 @@ dependencies = [
"bv",
"byteorder 1.3.4",
"chrono",
"derivation-path",
"digest 0.9.0",
"ed25519-dalek",
"generic-array 0.14.3",