We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313eee8 commit 77aebcdCopy full SHA for 77aebcd
src/cpu/dp_table.rs
@@ -22,10 +22,10 @@ pub(crate) fn scalar_half() -> Scalar {
22
}
23
24
/// Stored DP with full affine X for proper verification
25
-#[derive(Clone)]
+#[derive(Clone, Copy)]
26
struct StoredDP {
27
affine_x: [u8; 32],
28
- dist: Vec<u8>,
+ dist: [u8; 32],
29
ktype: u32,
30
31
@@ -163,7 +163,7 @@ impl DPTable {
163
164
existing_list.push(StoredDP {
165
affine_x,
166
- dist: dist_bytes.to_vec(),
+ dist: dist_bytes,
167
ktype: dp.ktype,
168
});
169
self.total_dps += 1;
@@ -177,7 +177,7 @@ impl DPTable {
177
hash_key,
178
vec![StoredDP {
179
180
181
182
}],
183
);
0 commit comments