axelarnetwork / tofn

A threshold cryptography library in Rust
Apache License 2.0
112 stars 23 forks source link

Use debug_assert that is disabled during a release build #122

Closed milapsheth closed 3 years ago

milapsheth commented 3 years ago

An observation made in the tofn audit is that we use assert! in some production code, which in Rust isn't disabled during a release build. Switch these to debug_assert!.