/// Tries to get the number of receivers as NumberOfNodes
Tries to get the number of receivers as NumberOfNodes
Tries to get the number of receivers as NumberOfNodes
fn number_of_receivers(
    receiver_keys: &BTreeMap<NodeIndex, FsEncryptionPublicKey>,
) -> Result<NumberOfNodes, SizeError> {
    let size = NodeIndex::try_from(receiver_keys.len()).map_err(|_| SizeError {
        message: format!(
            "Unsupported number of receivers:\n  Num receivers: {}\n  Max: {}",
            receiver_keys.len(),
            NodeIndex::max_value()
        ),
    })?;
    Ok(NumberOfNodes::from(size))
}
fn number_of_receivers ( receiver_keys : & BTreeMap < NodeIndex , FsEncryptionPublicKey > , ) -> Result < NumberOfNodes , SizeError > { let size = NodeIndex :: try_from ( receiver_keys . len ( ) ) . map_err ( | _ | SizeError { message : format ! ( " \n \n " receiver_keys len ( ) NodeIndex max_value ( ) ) , } ) ? ; Ok ( NumberOfNodes :: from ( size ) ) }
Tries to get the number of receivers as NumberOfNodes
Tries to get the number of receivers as NumberOfNodes
receiver_keys
&BTreeMap<NodeIndex, FsEncryptionPublicKey>