mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Remove "as", except for floats as needed
Also updates Bulletproofs from C to not be length prefixed, yet rather have Rust calculate their length. Corrects an error in key_gen where self was blamed, instead of the faulty participant.
This commit is contained in:
@@ -55,7 +55,7 @@ pub fn multiexp<
|
||||
}
|
||||
|
||||
for s in 0 .. tables.len() {
|
||||
res += tables[s][nibbles[s][b] as usize];
|
||||
res += tables[s][usize::from(nibbles[s][b])];
|
||||
}
|
||||
}
|
||||
res
|
||||
@@ -75,7 +75,7 @@ pub fn multiexp_vartime<
|
||||
|
||||
for s in 0 .. tables.len() {
|
||||
if nibbles[s][b] != 0 {
|
||||
res += tables[s][nibbles[s][b] as usize];
|
||||
res += tables[s][usize::from(nibbles[s][b])];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user