clearmatics / mobius

Trustless Tumbling for Transaction Privacy
GNU Lesser General Public License v3.0
85 stars 23 forks source link

Can compressed curve points save gas or storage? #36

Closed HarryR closed 6 years ago

HarryR commented 6 years ago

It is possible to derive the X/Y coords of a point from a compressed X coordinate which includes a sign bit. This halves the size of every point that's passed as an argument or stored.

At the moment the Gas cost of decompressing the point is more expensive than the storage costs.

HarryR commented 6 years ago

Closing as compressed points cost more gas than the transaction overhead they save.