Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify the function of SignCanonical in btcec, do makeCompact after i…
…sCanonicalSig. Since function recoverKeyFromSignature is called inside function makeCompact, the performance loss calculated by function recoverKeyFromSignature is relatively large. So do makeCompact after isCanonicalSig can reduce the number of times it is executed, when isCanonicalSig is false then continue the next loop. The average performance improvement after modification is nearly 40%-50%.
- Loading branch information