Would be more elegant in terms of testing to compress the assignment of total shares per party to an agreed convention instead of expanding the entire vector with indices. The conversion for testing purposes can be 1 share per physical entity, e.g: to instantiate a local network with 20 shares and 1 share per participant with threshold equals 12 - meaning 13 shares are needed - code looks likes that:
that could be compressed in pseudocode in sth like that:
party_share_counts = 20 // in the backend a 20 length vector is being unwrapped
sign_parties = 13 // a random selection of 13 physical entities each one holding 1 share is selected
Would be more elegant in terms of testing to compress the assignment of total shares per party to an agreed convention instead of expanding the entire vector with indices. The conversion for testing purposes can be 1 share per physical entity, e.g: to instantiate a local network with 20 shares and 1 share per participant with threshold equals 12 - meaning 13 shares are needed - code looks likes that:
https://github.com/axelarnetwork/tofn/blob/main/tests/integration/single_thread/mod.rs#L42:
that could be compressed in pseudocode in sth like that:
that is sth minor