tari-project / triptych

BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Use custom encoding for proof `Serialize` and `Deserialize` implementations #94

Closed AaronFeickert closed 3 months ago

AaronFeickert commented 3 months ago

While RangeProof implements Serialize and Deserialize, this is done via derive macros and is not as efficient as the custom encoding. The traits should be manually implemented to use this encoding; this will ensure that users get the best space efficiency.

AaronFeickert commented 3 months ago

To keep things straightforward, this was done using borsh instead in #95, leaving Serialize and Deserialize handled using derive macros.