bitcoindevkit / bdk

A modern, lightweight, descriptor-based wallet library written in Rust!
Other
838 stars 300 forks source link

BIP 326 Anti Fee Sniping #1134

Open benthecarman opened 11 months ago

benthecarman commented 11 months ago

Describe the enhancement

BDK currently has anti-fee sniping implemented, however it just sets the transaction locktime to the current height.

This can be improved by implementing BIP-326 which is designed to be more privacy preserving for the rest of the network, specifically for taproot transcations.

https://github.com/bitcoin/bips/blob/master/bip-0326.mediawiki

notmandatory commented 10 months ago

Since this is a functional change I moved it to the alpha.4 release. If we don't think we'll be able to implement it right now I'll move it to the 1.1 feature release.

ValuedMammal commented 9 months ago

@benthecarman How does this bip326 implementation look to you so far? https://github.com/bitcoindevkit/bdk/compare/master...ValuedMammal:bdk:feat/bip326-afs

benthecarman commented 9 months ago

Looking pretty good so far, you should make it a PR so people can comment on it

notmandatory commented 5 months ago

I propose we push to to a post 1.0 release since it's a functional improvement that shouldn't change the current wallet API.

darosior commented 1 month ago

For what it's worth, here is the implementation for the Bitcoin Core wallet: https://github.com/bitcoin/bitcoin/pull/24128.

notmandatory commented 3 days ago

Removing from 1.0 beta milestone. Need to figure out which post 1.0 milestone to put this in.