serialization: validate RingCT prunable JSON type

This commit is contained in:
selsta
2026-07-21 17:35:04 +02:00
parent de8a8e5e91
commit fe2e0dbc59
+5
View File
@@ -1173,6 +1173,11 @@ void fromJsonValue(const rapidjson::Value& val, rct::rctSig& sig)
const auto prunable = val.FindMember("prunable");
if (prunable != val.MemberEnd())
{
if (!prunable->value.IsObject())
{
throw WRONG_TYPE("json object");
}
rct::keyV pseudo_outs = std::move(sig.get_pseudo_outs());
GET_FROM_JSON_OBJECT(prunable->value, sig.p.rangeSigs, range_proofs);