public bool TryGetKeyForScriptPubKey(Script scriptPubKey, out HDPubKey?key) { return(ExternalKeys.TryGetKeyForScriptPubKey(scriptPubKey, out key) || InternalKeys.TryGetKeyForScriptPubKey(scriptPubKey, out key)); }