cuprate_consensus::transactions::contextual_data

Function new_ring_member_info

Source
pub fn new_ring_member_info(
    used_outs: Vec<Vec<OutputOnChain>>,
    decoy_info: Option<DecoyInfo>,
    tx_version: TxVersion,
) -> Result<TxRingMembersInfo, TransactionError>
Expand description

Construct a TxRingMembersInfo struct.

The used outs must be all the ring members used in the transactions inputs.