Store key origin info in key metadata
Summary:
Store the master key fingerprint and derivation path in the
key metadata. hdKeypath is kept to indicate the seed and for
backwards compatibility, but all key derivation path output
uses the key origin info instead of hdKeypath.
Partial backport of Core PR14021
https://github.com/bitcoin/bitcoin/pull/14021/commits/eab63bc264a35cf21738e8535773e3d36524c3fe
Depends on D6227
Test Plan:
ninja ninja check
Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix
Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D6228