Skip to content

Commit cf870ed

Browse files
committed
rpc: Implement decodepsbt for issuance needs blinded flag
1 parent 9599661 commit cf870ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@ static RPCHelpMan decodepsbt()
12181218
{RPCResult::Type::STR_HEX, "value_proof", /*optional=*/true, "The explicit value proof for this input"},
12191219
{RPCResult::Type::STR_HEX, "explicit_asset", /*optional=*/true, "The explicit asset for this input"},
12201220
{RPCResult::Type::STR_HEX, "asset_proof", /*optional=*/true, "The explicit asset proof for this input"},
1221+
{RPCResult::Type::BOOL, "blinded_issuance", /*optional=*/true, "Whether the issuance should be blinded prior to signing"},
12211222
{RPCResult::Type::OBJ_DYN, "unknown", "The unknown global fields",
12221223
{
12231224
{RPCResult::Type::STR_HEX, "key", "(key-value pair) An unknown key-value pair"},
@@ -1613,6 +1614,10 @@ static RPCHelpMan decodepsbt()
16131614
in.pushKV("asset_proof", HexStr(input.m_asset_proof));
16141615
}
16151616

1617+
if (input.m_blinded_issuance.has_value()) {
1618+
in.pushKV("blinded_issuance", *input.m_blinded_issuance);
1619+
}
1620+
16161621
switch (VerifyBlindProofs(input)) {
16171622
case BlindProofResult::OK:
16181623
// all good

0 commit comments

Comments
 (0)