mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
\#242 Expand usage of black_box/zeroize
This commit greatly expands the usage of black_box/zeroize on bits, as it originally should have. It is likely overkill, leading to less efficient code generation, yet does its best to be comprehensive where comprehensiveness is extremely annoying to achieve. In the future, this usage of black_box may be desirable to move to its own crate. Credit to @AaronFeickert for identifying the original commit was incomplete.
This commit is contained in:
@@ -39,8 +39,14 @@ transcript = { package = "flexible-transcript", path = "../transcript", features
|
||||
[features]
|
||||
std = []
|
||||
serialize = ["std"]
|
||||
experimental = ["std", "thiserror", "multiexp"]
|
||||
|
||||
# Needed for cross-group DLEqs
|
||||
black_box = []
|
||||
secure_capacity_difference = []
|
||||
experimental = ["std", "thiserror", "multiexp"]
|
||||
|
||||
# Only applies to experimental, yet is default to ensure security
|
||||
# experimental doesn't mandate it itself in case two curves with extreme
|
||||
# capacity differences are desired to be used together, in which case the user
|
||||
# must specify experimental without default features
|
||||
default = ["secure_capacity_difference"]
|
||||
|
||||
Reference in New Issue
Block a user