bnb-chain / tss-lib

Threshold Signature Scheme, for ECDSA and EDDSA
MIT License
790 stars 271 forks source link

style: refactor crypto lib to consistent verification style #113

Closed 0xmountaintop closed 3 years ago

0xmountaintop commented 3 years ago

in vss::Share::Verify & mta::ProofBob::Verify & all other ValidateBasic()/Validate(), boolean computations are returned directly.

However, this is not the case in commitment and schnorr_proof package.

This PR refactor them to consistent verification style, and may save condition branch executions if being compiled without optimization.