Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new account version that supports MuSig2 v1.0.0-rc2 protocol (coming with lnd 0.16.0-beta) #435

Merged
merged 8 commits into from
Mar 8, 2023

Conversation

guggero
Copy link
Member

@guggero guggero commented Jan 31, 2023

Depends on lightningnetwork/lnd#7171.
Depends on lightninglabs/lndclient#139.

This PR add support for the updated MuSig2 v1.0.0-rc2 protocol to Pool accounts.

The order for getting this in is:

Pull Request Checklist

  • LndServices minimum version has been updated if new lnd apis/fields are
    used.

@guggero
Copy link
Member Author

guggero commented Jan 31, 2023

@positiveblue Christmas came early this year, we now have feature flag bases batch versions 😎

Copy link
Contributor

@positiveblue positiveblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

account/interfaces.go Show resolved Hide resolved
rpcserver.go Show resolved Hide resolved
poolscript/script.go Show resolved Hide resolved
order/batch.go Show resolved Hide resolved
Copy link
Contributor

@ffranr ffranr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice testing!

rpcserver.go Outdated Show resolved Hide resolved
poolscript/script.go Show resolved Hide resolved
accountInputFeesTaproot,

// We'll use the lowest fee rate possible, which should
// yield a transaction fee of 304 satoshis when taking
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think that specifics like "304" will become stale as they are hard to keep up-to-date. A assertion in code would be an alternative. I would suggest removal from the comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good call. I replaced the magic number with a constant and removed the comments.

order/batch.go Outdated Show resolved Hide resolved
guggero added 8 commits March 8, 2023 17:42
This commit bumps the compile time dependency of lnd and lndclient to
the 0.16.x branch. This makes the code forward compatible but does not
yet change anything with respect to the minimum required version the
user needs to run.
Since any version prior to v0.15.4-beta will not sync to the mainnet
chain, we can safely bump the minimum required version to that since no
older version will be running (properly) anywhere.
@guggero guggero merged commit e366579 into master Mar 8, 2023
@guggero guggero deleted the musig2-1-0 branch March 8, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants