sui_bridge::utils

Function get_validator_names_by_pub_keys

Source
pub async fn get_validator_names_by_pub_keys(
    bridge_committee: &Arc<BridgeCommittee>,
    system_state: &SuiSystemStateSummary,
) -> BTreeMap<BridgeAuthorityPublicKeyBytes, String>
Expand description

Return a mappping from validator pub keys to their names. If a validator is not in the Sui committee, we will use its base URL as the name.