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

BIP 329 "Wallet Labels Export Format" Support #848

Open
gabridome opened this issue Jan 18, 2023 · 16 comments · May be fixed by #1526
Open

BIP 329 "Wallet Labels Export Format" Support #848

gabridome opened this issue Jan 18, 2023 · 16 comments · May be fixed by #1526
Labels
new feature New feature or request

Comments

@gabridome
Copy link

The spec is new but it seems not invasive.
I find particularly interesting the outputs's labels.
https://github.com/bitcoin/bips/blob/master/bip-0329.mediawiki

@thunderbiscuit
Copy link
Member

I like the labelling idea a lot. But in this case this might be information that would be stored in the BD itself (unless the cli kept a separate persistence of some sort), and so I think this issue is better suited for BDK itself rather than bdk-cli.

@notmandatory notmandatory added the new feature New feature or request label Jan 31, 2023
@notmandatory
Copy link
Member

I agree this looks like a good spec to add support for but the feature should be added in the bdk repo, once there we can enable it in the bdk-cli tool. Moving this issue to the bdk repo for now.

@notmandatory notmandatory transferred this issue from bitcoindevkit/bdk-cli Jan 31, 2023
@notmandatory notmandatory moved this to Todo in BDK Maintenance Jan 31, 2023
@notmandatory notmandatory changed the title BIP 329 Support BIP 329 "Wallet Labels Export Format" Support Mar 2, 2023
@xavierfiechter
Copy link

What about "Label Import" ?

@praveenperera
Copy link
Contributor

Can I help with this?

@notmandatory
Copy link
Member

Hi @praveenperera yes I don't know of anyone else looking into this issue.

@notmandatory notmandatory added this to BDK Jun 15, 2024
@notmandatory notmandatory moved this to Todo in BDK Jun 15, 2024
@praveenperera
Copy link
Contributor

@notmandatory sounds good, the implementation looks relatively simple, I just have to familiarize myself with BDK a bit more to figure out the place to add it.

I’ll probably need this in a few weeks, so assuming no one else has picked it up by then, I’ll work on it at that time.

If someone else wants to take it before then, feel free.

@notmandatory
Copy link
Member

Feel free to ask questions in our discord text or weekly voice chats too.

@storopoli storopoli linked a pull request Jul 28, 2024 that will close this issue
8 tasks
@praveenperera
Copy link
Contributor

Made a standalone crate, maybe it makes sense to incorporate it into bdk?

https://github.com/bitcoinppl/bip329?tab=readme-ov-file

@storopoli
Copy link
Contributor

Yes, it does make sense. I can close #1526 in favor of your bip329 crate.
We just need to integrate it to the BDK's Wallet.
I did for the input and output label types.
You can check it at #1526.
I still have no idea how to integrate with the Wallet for the other label types from BIP 329.

@praveenperera
Copy link
Contributor

@storopoli oh didn’t know you were working on this today too. What are the odds we both started this on the same day haha.

I’m not sure the best way to integrate it yet either.

@storopoli
Copy link
Contributor

Check my implementation, steal the best parts, and make a PR. I'll help review it.
What do you think?

What are the odds we both started this on the same day

We're pretty much in-sync now that things are stable (beta) with the storage it would be very opportunistic to implement BIP 329 labels.

@xavierfiechter
Copy link

@storopoli @praveenperera love to see this coming! Thanks for your time and effort.

@praveenperera
Copy link
Contributor

@storopoli do you want to continue on the integration work since you’ve already started this PR? Let me know if you need any changes made in the library.

@storopoli
Copy link
Contributor

Alright. I might get your tests.
One thing that I was thinking yesterday is that the wallet needs to be fully synced for any import labels. This will make much more easier and efficient in the storage side to fetch the Outpoints and Addresses in order to store the label.
I'll keep adding stuff to the PR. Please feel free to review the draft and add suggestions.

@notmandatory notmandatory moved this from Todo to Discussion in BDK Aug 22, 2024
@praveenperera
Copy link
Contributor

@storopoli hey are you working on this, if not I think I can take it on next week.

@storopoli
Copy link
Contributor

No, I'm not. All yours :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
Status: Discussion
Development

Successfully merging a pull request may close this issue.

6 participants