Checks if a CKey is in the given CWallet compressed or otherwise*/
| 20 | namespace wallet { |
| 21 | /** Checks if a CKey is in the given CWallet compressed or otherwise*/ |
| 22 | bool HaveKey(const SigningProvider& wallet, const CKey& key) |
| 23 | { |
| 24 | CKey key2; |
| 25 | key2.Set(key.begin(), key.end(), !key.IsCompressed()); |
| 26 | return wallet.HaveKey(key.GetPubKey().GetID()) || wallet.HaveKey(key2.GetPubKey().GetID()); |
| 27 | } |
| 28 | |
| 29 | static RPCHelpMan getwalletinfo() |
| 30 | { |
no test coverage detected