@@ -1272,6 +1272,7 @@ static RPCHelpMan decodepsbt()
1272
1272
{RPCResult::Type::STR_HEX, " explicit_asset" , /* optional=*/ true , " The explicit asset for this input" },
1273
1273
{RPCResult::Type::STR_HEX, " asset_proof" , /* optional=*/ true , " The explicit asset proof for this input" },
1274
1274
{RPCResult::Type::BOOL, " blinded_issuance" , /* optional=*/ true , " Whether the issuance should be blinded prior to signing" },
1275
+ {RPCResult::Type::STR_HEX, " asset_blinder" , /* optional=*/ true , " The asset blinding factor for this input" },
1275
1276
{RPCResult::Type::OBJ_DYN, " ripemd160_preimages" , /* optional=*/ true , " " ,
1276
1277
{
1277
1278
{RPCResult::Type::STR, " hash" , " The hash and preimage that corresponds to it." },
@@ -1342,6 +1343,7 @@ static RPCHelpMan decodepsbt()
1342
1343
{RPCResult::Type::STR_HEX, " blinding_pubkey" , " The blinding pubkey for the output" },
1343
1344
{RPCResult::Type::STR_HEX, " blind_value_proof" , " Explicit value rangeproof that proves the value commitment matches the value" },
1344
1345
{RPCResult::Type::STR_HEX, " blind_asset_proof" , " Assert surjection proof that proves the assert commitment matches the asset" },
1346
+ {RPCResult::Type::STR_HEX, " asset_blinder" , /* optional=*/ true , " The asset blinding factor for the output" },
1345
1347
{RPCResult::Type::STR, " status" , " information about how the output has been blinded, if available" },
1346
1348
{RPCResult::Type::OBJ_DYN, " unknown" , /* optional=*/ true , " The unknown global fields" ,
1347
1349
{
@@ -1687,6 +1689,10 @@ static RPCHelpMan decodepsbt()
1687
1689
in.pushKV (" blinded_issuance" , *input.m_blinded_issuance );
1688
1690
}
1689
1691
1692
+ if (input.m_asset_blinding_factor .has_value ()) {
1693
+ in.pushKV (" asset_blinder" , input.m_asset_blinding_factor .value ().GetHex ());
1694
+ }
1695
+
1690
1696
switch (VerifyBlindProofs (input)) {
1691
1697
case BlindProofResult::OK:
1692
1698
// all good
@@ -1864,6 +1870,11 @@ static RPCHelpMan decodepsbt()
1864
1870
out.pushKV (" blind_asset_proof" , HexStr (output.m_blind_asset_proof ));
1865
1871
}
1866
1872
1873
+ // Asset blinding factor
1874
+ if (output.m_asset_blinding_factor .has_value ()) {
1875
+ out.pushKV (" asset_blinder" , output.m_asset_blinding_factor .value ().GetHex ());
1876
+ }
1877
+
1867
1878
switch (VerifyBlindProofs (output)) {
1868
1879
case BlindProofResult::OK:
1869
1880
// all good
0 commit comments