mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-21 23:29:50 -05:00
Use recover_key
function to compute actual signing key
This commit is contained in:
parent
507e2670ac
commit
04e7d1c111
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user