His personal lawyer went to prison for 2 years on charges related to this crime, and was the primary witness against Trump in this Grand Jury investigation.
Whatever he told them, along with whatever other evidence was presented, it was sufficient for them to indict.
The Grand Jury indicted Trump, not Alvin Bragg.