From 04e7d1c11131e5543cd96c9dd0465427ba98baee Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 14 May 2021 10:57:11 +1000 Subject: [PATCH] Use `recover_key` function to compute actual signing key --- monero-adaptor/tests/integration_test.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/monero-adaptor/tests/integration_test.rs b/monero-adaptor/tests/integration_test.rs index 35304452..52944a4b 100644 --- a/monero-adaptor/tests/integration_test.rs +++ b/monero-adaptor/tests/integration_test.rs @@ -89,10 +89,7 @@ async fn monerod_integration_test() { // We appear to be using the correct signing key, because we can // find it in the ring! Conversely, the point corresponding to the // "original" signing key is not part of the ring - let actual_signing_key = signing_key - + KeyGenerator::from_key(&viewpair, our_output.tx_pubkey) - .get_rvn_scalar(our_output.index) - .scalar; + let actual_signing_key = our_output.recover_key(&lock_kp).scalar; assert_eq!(actual_lock_amount, lock_amount);