cuprate_consensus_rules::transactions

Function insert_ring_member_ids

Source
pub fn insert_ring_member_ids(
    inputs: &[Input],
    output_ids: &mut HashMap<u64, HashSet<u64>>,
) -> Result<(), TransactionError>
Expand description

Inserts the output IDs that are needed to verify the transaction inputs into the provided HashMap.

This will error if the inputs are empty https://cuprate.github.io/monero-book/consensus_rules/transactions.html#no-empty-inputs