|
|
|
@ -136,6 +136,7 @@ UniValue getdescriptorinfo(const JSONRPCRequest& request)
|
|
|
|
|
RPCResult{
|
|
|
|
|
"{\n"
|
|
|
|
|
" \"descriptor\" : \"desc\", (string) The descriptor in canonical form, without private keys\n"
|
|
|
|
|
" \"checksum\" : \"chksum\", (string) The checksum for the input descriptor\n"
|
|
|
|
|
" \"isrange\" : true|false, (boolean) Whether the descriptor is ranged\n"
|
|
|
|
|
" \"issolvable\" : true|false, (boolean) Whether the descriptor is solvable\n"
|
|
|
|
|
" \"hasprivatekeys\" : true|false, (boolean) Whether the input descriptor contained at least one private key\n"
|
|
|
|
@ -156,6 +157,7 @@ UniValue getdescriptorinfo(const JSONRPCRequest& request)
|
|
|
|
|
|
|
|
|
|
UniValue result(UniValue::VOBJ);
|
|
|
|
|
result.pushKV("descriptor", desc->ToString());
|
|
|
|
|
result.pushKV("checksum", GetDescriptorChecksum(request.params[0].get_str()));
|
|
|
|
|
result.pushKV("isrange", desc->IsRange());
|
|
|
|
|
result.pushKV("issolvable", desc->IsSolvable());
|
|
|
|
|
result.pushKV("hasprivatekeys", provider.keys.size() > 0);
|
|
|
|
|