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

Sign a text message with NBitcoin #1187

Open
aboimpinto opened this issue Sep 20, 2023 · 6 comments
Open

Sign a text message with NBitcoin #1187

aboimpinto opened this issue Sep 20, 2023 · 6 comments

Comments

@aboimpinto
Copy link

Hello,

I could not find a way to sign a simple text message with NBitcoin.

Can you point me in the right direction so I can sign the message and verify?

thanks
Paulo Aboim Pinto

@aboimpinto aboimpinto changed the title Sign a test message with NBitcoin Sign a text message with NBitcoin Sep 20, 2023
@dangershony
Copy link
Contributor

You can't its been deleted on main repo, use a fork of NBitcoin like blockcore or something

@aboimpinto
Copy link
Author

aboimpinto commented Sep 21, 2023

Why was this feature removed?

@dangershony
Copy link
Contributor

#1094

@aboimpinto
Copy link
Author

I didn't like the way this thread went ...
I'm no expert in the Bitcoin protocol but I know Satoshi Nakomoto signed a message on the genesis block and now using NBitcoin we cannot do it...
Am I right with this comment?

@dangershony
Copy link
Contributor

You are totally right imo, but for the sake of keeping politics out of code (unfortunately this is not always the case) just use a fork of NBitcoin or implement yourself the message signing, it's not that hard.

https://github.com/block-core/blockcore/blob/master/src/Blockcore/NBitcoin/Key.cs#L121

@aboimpinto
Copy link
Author

I agree ... politics should be out of the code ...
thanks!!

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

No branches or pull requests

2 participants