tari-project / triptych

BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

chore: remove `subtle` feature #68

Closed AaronFeickert closed 7 months ago

AaronFeickert commented 7 months ago

We currently use the core_hint_black_box feature from subtle, which uses a particular optimization barrier.

However, the standard library documentation cautions against the use of std::hint::black_box for cryptographic use. This has led subtle to remove it in an upcoming release, at which point the feature will do nothing.

This PR takes the proactive step of removing the feature. There is still an optimization barrier in place, which will become the default after the feature is deprecated.