diodechain / diode_client

Diode client written in GO that runs the Blockquick™ algorithm and a socks server to transmit data through diodechain.
https://diode.io/download
Other
65 stars 23 forks source link

Replace all the secp256k1 recovery function to validate signature with public key #3

Closed sc0Vu closed 4 years ago

sc0Vu commented 4 years ago

The recovery function in secp256k1 curve cost too much resources.

In IoT constrained device, it might take longer time to run recovery function. Because there is no enough memory to keep pre-computed points on IoT device. After test secp256k1 recovery bitcoin implementation on linkit7697, it took 50 seconds to recovery one public key.

IMHO, it would be great to replace all the secp256k1 recovery function to validate signature with public key.