crypto icon indicating copy to clipboard operation
crypto copied to clipboard

First part of if condition redundant

Open EDGDrummond opened this issue 3 years ago • 0 comments

https://github.com/docknetwork/crypto/blob/2eee4a6a6cba58c92e18ad5557d6b1a7a4730cfe/compressed_sigma/src/amortized_homomorphism.rs#L79

We check if witnesses.len() > j, but j < witnesses.len() by definition so this is trivially true.

EDGDrummond avatar Feb 08 '22 16:02 EDGDrummond