class FederationSupport {

    public byte[] getMemberPublicKeyOfType(List<FederationMember> members, int index, FederationMember.KeyType keyType, String errorPrefix) {
        if (index < 0 || index >= members.size()) {
            throw new IndexOutOfBoundsException(String.format("%s index must be between 0 and %d", errorPrefix, members.size() - 1));
        }

        return members.get(index).getPublicKey(keyType).getPubKey(true);
    }

    public  FederationSupport(BridgeConstants bridgeConstants, BridgeStorageProvider provider, Block executionBlock);

}