Use recover_key function to compute actual signing key

This commit is contained in:
Thomas Eizinger 2021-05-14 10:57:11 +10:00
parent 507e2670ac
commit 04e7d1c111
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -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);