MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sign a text message with NBitcoin

aboimpinto opened this issue · comments

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

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

Why was this feature removed?

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?

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

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