loadFromFile static method
Implementation
static Future<KzgSetting> loadFromFile(String trustedSetupPath) async {
final trustedSetup = await rootBundle.loadString(trustedSetupPath);
final map = jsonDecode(trustedSetup);
_g1BytesList = List<Uint8List>.from(map['g1_lagrange']
.map((e) => Uint8List.fromList(hex.decode(e.toString()))));
_g2BytesList = List<Uint8List>.from(map['g2_monomial']
.map((e) => Uint8List.fromList(hex.decode(e.toString()))));
return KzgSetting._();
}