axelarnetwork / tofn

A threshold cryptography library in Rust
Apache License 2.0
107 stars 22 forks source link

Use debug_assert that is disabled during a release build #122

Closed milapsheth closed 2 years ago

milapsheth commented 2 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!.