xmr-btc-swap icon indicating copy to clipboard operation
xmr-btc-swap copied to clipboard

upgrade secp256kfun

Open delta1 opened this issue 1 year ago • 16 comments

re: #1459

upgrades the secp256kfun dependency, the previously pinned version fails to compile on rust 1.74

fixes a few resulting issues, and some minor cleanup refactoring

also adds a new CI job to run cargo check on rust stable

also closes:

  • #1410
  • #1412

delta1 avatar Dec 11 '23 13:12 delta1

I will need some time to review this as this is quite critical code and I'm not too familiar with the library.

binarybaron avatar Dec 11 '23 15:12 binarybaron

Out of curiosity, why resolve on 0.24.1 instead of the most recent release (0.28)?

ikmckenz avatar Dec 20 '23 20:12 ikmckenz

Out of curiosity, why resolve on 0.24.1 instead of the most recent release (0.28)?

looks like you’re referring to secp256k1, this PR is upgrading secp256kfun. as for the versions, from the lockfile it looks like bitset still has a dependency on 0.24 of secp256k1, and secp256kfun is still depending on 0.27 of secp256k1

delta1 avatar Dec 21 '23 05:12 delta1

LGTM but have you completed a swap using the new CLI version and an old ASB version yet?

binarybaron avatar Dec 29 '23 12:12 binarybaron

LGTM but have you completed a swap using the new CLI version and an old ASB version yet?

no i have not

delta1 avatar Dec 29 '23 13:12 delta1

updated to include #1546 #1547

delta1 avatar Feb 05 '24 11:02 delta1

updated to include #1549 #1550

delta1 avatar Feb 15 '24 11:02 delta1

update to include #1556 and #1557

also sets the revision in the Cargo.toml manifest

delta1 avatar Feb 23 '24 20:02 delta1

Is this 100% backwards compatible in terms of the database and p2p protocols?

binarybaron avatar Feb 29 '24 16:02 binarybaron

@ikmckenz if you have a moment, please test this by building this branch asb/swap, and use those binaries on testnet performing a swap against the previous version

delta1 avatar Mar 01 '24 04:03 delta1

Sigh I don't have any testnet bitcoin to test with :weary: @binarybaron any donations?

tb1qttry3wfcwcf7gyv26a5elt9hcran7nsnfj9zgj

delta1 avatar Mar 04 '24 09:03 delta1

Is this 100% backwards compatible in terms of the database and p2p protocols?

tested a number of testnet swaps between this version of asb and latest swap release, as well as this version of swap with latest asb release

happy for this change to be a version change to 0.13

delta1 avatar Mar 06 '24 11:03 delta1

No need. I'll trust you on that.

binarybaron avatar Mar 09 '24 15:03 binarybaron

bors r+

binarybaron avatar Mar 09 '24 15:03 binarybaron

Why do you use the git repo instead of 0.10.0 on crates.io?

linsui avatar Mar 16 '24 06:03 linsui

Why do you use the git repo instead of 0.10.0 on crates.io?

good question, i think that’s a hangover from where we were ahead of their releases to crates.io

i’m going to rework this PR to use the crates version, thanks for the suggestion

delta1 avatar Mar 16 '24 07:03 delta1

includes a fix for #1645

delta1 avatar May 27 '24 09:05 delta1