xrpld
Loading...
Searching...
No Matches
xrpl::test::jtx::ConfidentialSendChainState Struct Reference

When building multiple confidential sends from the same account inside a single batch transaction, pass this state to the transaction builder for each subsequent send so that its proof references the post previous-send encrypted balance rather than the stale pre-send ledger state. More...

#include <mpt.h>

Collaboration diagram for xrpl::test::jtx::ConfidentialSendChainState:

Public Attributes

std::uint64_t spending
 Decrypted spending balance after the previous send.
Buffer encSpending
 Encrypted spending balance after the previous send.
std::uint32_t version
 sfConfidentialBalanceVersion after the previous send.

Detailed Description

When building multiple confidential sends from the same account inside a single batch transaction, pass this state to the transaction builder for each subsequent send so that its proof references the post previous-send encrypted balance rather than the stale pre-send ledger state.

The fields mirror what the ledger will contain after the preceding send's doApply() completes: encSpending = homomorphicSubtract(prevEncSpending, senderEncAmt) version = prevVersion + 1

Definition at line 346 of file mpt.h.

Member Data Documentation

◆ spending

std::uint64_t xrpl::test::jtx::ConfidentialSendChainState::spending

Decrypted spending balance after the previous send.

Definition at line 349 of file mpt.h.

◆ encSpending

Buffer xrpl::test::jtx::ConfidentialSendChainState::encSpending

Encrypted spending balance after the previous send.

Definition at line 352 of file mpt.h.

◆ version

std::uint32_t xrpl::test::jtx::ConfidentialSendChainState::version

sfConfidentialBalanceVersion after the previous send.

Definition at line 355 of file mpt.h.