mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-22 15:49:52 -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
|
// We appear to be using the correct signing key, because we can
|
||||||
// find it in the ring! Conversely, the point corresponding to the
|
// find it in the ring! Conversely, the point corresponding to the
|
||||||
// "original" signing key is not part of the ring
|
// "original" signing key is not part of the ring
|
||||||
let actual_signing_key = signing_key
|
let actual_signing_key = our_output.recover_key(&lock_kp).scalar;
|
||||||
+ KeyGenerator::from_key(&viewpair, our_output.tx_pubkey)
|
|
||||||
.get_rvn_scalar(our_output.index)
|
|
||||||
.scalar;
|
|
||||||
|
|
||||||
assert_eq!(actual_lock_amount, lock_amount);
|
assert_eq!(actual_lock_amount, lock_amount);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user