mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-02 19:46:13 -04:00
Use recover_key
function to compute actual signing key
This commit is contained in:
parent
507e2670ac
commit
04e7d1c111
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue