Revert "Revert "add more precomputation to ecdsa signing""

This reverts commit 3747ba432336bf10191a63e84fbfead62e944ddb.
fix bug in unoptimized branch of code