mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 12:09:37 +00:00
Fix compilation errors in monero-serai
This commit is contained in:
parent
c0cac7591d
commit
194c5acebb
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ fn core(
|
||||||
let mut to_hash = Vec::with_capacity(((2 * n) + 5) * 32);
|
let mut to_hash = Vec::with_capacity(((2 * n) + 5) * 32);
|
||||||
to_hash.extend(PREFIX);
|
to_hash.extend(PREFIX);
|
||||||
to_hash.extend(AGG_0);
|
to_hash.extend(AGG_0);
|
||||||
to_hash.extend([0; 32 - PREFIX_AGG_0_LEN.len()]);
|
to_hash.extend([0; 32 - PREFIX_AGG_0_LEN]);
|
||||||
|
|
||||||
let mut P = Vec::with_capacity(n);
|
let mut P = Vec::with_capacity(n);
|
||||||
for member in ring {
|
for member in ring {
|
||||||
|
@ -123,7 +123,7 @@ fn core(
|
||||||
// mu_P with agg_0
|
// mu_P with agg_0
|
||||||
let mu_P = hash_to_scalar(&to_hash);
|
let mu_P = hash_to_scalar(&to_hash);
|
||||||
// mu_C with agg_1
|
// mu_C with agg_1
|
||||||
to_hash[PREFIX_AGG_0_LEN.len() - 1] = b'1';
|
to_hash[PREFIX_AGG_0_LEN - 1] = b'1';
|
||||||
let mu_C = hash_to_scalar(&to_hash);
|
let mu_C = hash_to_scalar(&to_hash);
|
||||||
|
|
||||||
// Truncate it for the round transcript, altering the DST as needed
|
// Truncate it for the round transcript, altering the DST as needed
|
||||||
|
|
Loading…
Reference in a new issue