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
{{ message }}
Repository navigation
rs-sdk: return a key's total and remaining budget from one proof #6064
Problem: A client shows a key's total budget, which comes from the key it holds, next to its remaining budget, which comes from fetchKeysRemainingBudgets / dash_sdk_identity_fetch_keys_remaining_budgets. The query returns neither the total it corresponds to nor the proof height. Right after a raise, a node one block behind can answer with the remaining budget from before the raise. A client then cannot tell that answer apart from a current one.
Effect today: a briefly stale display figure. SwiftExampleApp shows a reading only next to the total it was requested under, derives nothing from it, and signs nothing from it.
Wanted: a query, or an extension of the remaining-budgets query, that proves each key's total budget (and expiry) together with its remaining budget at one height. Clients can then show the two together, or order the answer against a raise they know of.
Also from the #6148 review (#6148 (comment)): the remaining-budgets query takes every requested key id in one request, and the node refuses a request past max_returned_elements (100). A client listing an identity with more than 100 budgeted keys gets no remaining figures at all. Whatever replaces or extends this query should split a larger id list into bounded, proved batches in the Rust SDK, so no client hard-codes the protocol limit.
Activity
QuantumExplorer commentedon Nov 23, 2026
Also from the #6148 review (#6148 (comment)): the remaining-budgets query takes every requested key id in one request, and the node refuses a request past
max_returned_elements(100). A client listing an identity with more than 100 budgeted keys gets no remaining figures at all. Whatever replaces or extends this query should split a larger id list into bounded, proved batches in the Rust SDK, so no client hard-codes the protocol limit.fix: address review of the KotlinExampleApp key limits screen