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 message signing #229

Closed
filiplipa opened this issue Mar 23, 2022 · 6 comments
Closed

Add message signing #229

filiplipa opened this issue Mar 23, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@filiplipa
Copy link

Problem

It seems that message signing hasn't been exposed yet in Kotlin.

Description

It would be useful to have this option to sign messages using private keys.

Alternatives

No response

@filiplipa filiplipa added the enhancement New feature or request label Mar 23, 2022
@notmandatory
Copy link
Member

notmandatory commented Mar 26, 2022

Are you looking to sign an arbitrary text message with some private key from your wallet descriptor? and then you'll also need a way to verify the signature with the corresponding public key right? I don't think we have any example for how to do this with bdk, but it should be possible.

If anyone wants to write up a an example in Rust for how to sign messages with a DescriptorSecretKey and verify them with a DescriptorPublicKey that would be helpful.

@q-src
Copy link

q-src commented Apr 12, 2022

Please see also #139

@thunderbiscuit
Copy link
Member

Related to bitcoindevkit/bdk#601. Once the feature is available in Rust BDK we'll expose it to the bindings.

@notmandatory notmandatory reopened this Nov 11, 2022
@notmandatory notmandatory transferred this issue from bitcoindevkit/bdk-kotlin Nov 11, 2022
@notmandatory
Copy link
Member

Moved issue to bdk-ffi and will resolve once feature is added.

@thunderbiscuit
Copy link
Member

thunderbiscuit commented May 29, 2023

Note: the correct way to apply general-purpose message signing is likely to be by implementing BIP-322.

@thunderbiscuit
Copy link
Member

I'm closing this because it's a feature request that belongs at the Rust level of BDK. Once we get it in we'll happily expose it in the bindings!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

4 participants