You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #549: Make new actually working master blinding calls, test
9acbd24 Make new actually working master blinding calls, test (Gregory Sanders)
Pull request description:
resolves#547
Previous API was improperly overloading the specific blinding key calls, and incorrectly on top of that.
Instead implement `importmasterblindingkey` and `dumpmasterblindingkey` and check that `dumpwallet` details are enough to recover same blinded wallet addresses.
Tree-SHA512: d9d954d1cb787182d99b464cc6a80e8383d3ea71e432e6fd0e244b5f5a460b9adfcdc14e38fe841c5a5e2fef1345da78217d519a23a804d5066998828103efd1
if (request.fHelp || request.params.size() < 2 || request.params.size() > 3)
1346
+
if (request.fHelp || request.params.size() != 2)
1347
1347
throwstd::runtime_error(
1348
1348
"importblindingkey \"address\"\"blindinghex\"\n"
1349
1349
"\nImports a private blinding key in hex for a CT address."
1350
1350
"\nArguments:\n"
1351
1351
"1. \"address\" (string, required) The CT address\n"
1352
1352
"2. \"hexkey\" (string, required) The blinding key in hex\n"
1353
-
"3. \"key_is_master\" (bool, optional, default=false) If the `hexkey` is a master blinding key. Note: wallets can only have one master blinding key at a time. Funds could be permanently lost if user doesn't know what they are doing. Recommended use is only for wallet recovery using this in conjunction with `sethdseed`.\n"
if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) {
1397
+
return NullUniValue;
1398
+
}
1399
+
1400
+
if (request.fHelp || request.params.size() != 1)
1401
+
throwstd::runtime_error(
1402
+
"importblindingkey \"address\"\"blindinghex\"\n"
1403
+
"\nImports a master private blinding key in hex for a CT address."
1404
+
"Note: wallets can only have one master blinding key at a time. Funds could be permanently lost if user doesn't know what they are doing. Recommended use is only for wallet recovery using this in conjunction with `sethdseed`.\n"
1405
+
"\nArguments:\n"
1406
+
"1. \"hexkey\" (string, required) The blinding key in hex\n"
0 commit comments