zkMIPS / zkm

The universal zkVM empowering Ethereum as the Global Settlement Layer
https://zkm.io
MIT License
92 stars 49 forks source link

Add some functions which allow user create segment, load segments or save segments without providing file path #110

Closed evan95s closed 5 months ago

evan95s commented 5 months ago
  1. Add segment_kernel_with_data function which acts like segment_kernel function but the parameter is seg_data itself other than seg_file path, so the users can parse the file content themselves and generate segments.
  2. Add load_segment_from_data function which acts like load_segment but the parameter is seg_data itself other than seg_file path.
  3. Add get_split_segments function which acts like split_segment but the users can get the segments so they can save segments as they want.