ZoKrates icon indicating copy to clipboard operation
ZoKrates copied to clipboard

Can prove key deserialization be optimized?

Open p0vidl0 opened this issue 2 years ago • 1 comments

Thanks for great library. For a custom use-case, serialized prove key have size about 29332912 bytes. The key deserialization takes 26 seconds and proof generation takes less than 2 seconds.

Please advise, is it possible in theory to optimize the deserialization process to make overall process faster?

p0vidl0 avatar Oct 11 '22 09:10 p0vidl0

Hi, thanks for flagging. We would welcome contributions on this.

Schaeff avatar Oct 11 '22 19:10 Schaeff

Thanks for great library. For a custom use-case, serialized prove key have size about 29332912 bytes. The key deserialization takes 26 seconds and proof generation takes less than 2 seconds.

Please advise, is it possible in theory to optimize the deserialization process to make overall process faster?

I'm closing this for now as I could not replicate the same issue with the latest version. My assumption is this issue is resolved since 0.8.1, the issue was related to a call to the deserialization function that had validity checks which were time-consuming.

dark64 avatar Apr 11 '23 13:04 dark64