mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Compute I earlier
This commit is contained in:
parent
22ff99b65f
commit
46d0eaedea
@ -46,8 +46,7 @@ fn final_challenge(
|
||||
I_hat_a: EdwardsPoint,
|
||||
I_hat_b: EdwardsPoint,
|
||||
R_prime_a: EdwardsPoint,
|
||||
I_a: EdwardsPoint,
|
||||
I_b: EdwardsPoint,
|
||||
I: EdwardsPoint,
|
||||
msg: [u8; 32],
|
||||
) -> Result<(Scalar, Scalar)> {
|
||||
let h_0 = {
|
||||
@ -79,8 +78,6 @@ fn final_challenge(
|
||||
keccak.update(ring_concat.as_slice());
|
||||
keccak.update(&msg);
|
||||
|
||||
let I = I_a + I_b;
|
||||
|
||||
let h_last = fake_responses
|
||||
.iter()
|
||||
.enumerate()
|
||||
@ -255,8 +252,7 @@ impl Alice0 {
|
||||
self.I_hat_a,
|
||||
msg.I_hat_b,
|
||||
self.R_prime_a,
|
||||
self.I_a,
|
||||
msg.I_b,
|
||||
self.I_a + msg.I_b,
|
||||
self.msg,
|
||||
)?;
|
||||
|
||||
@ -427,8 +423,7 @@ impl Bob1 {
|
||||
I_hat_a,
|
||||
self.I_hat_b,
|
||||
self.R_prime_a,
|
||||
I_a,
|
||||
self.I_b,
|
||||
I_a + self.I_b,
|
||||
self.msg,
|
||||
)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user