MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.86k stars 844 forks source link

Why is the VerifyMessage method no longer available? #1107

Closed yanjustino closed 2 years ago

yanjustino commented 2 years ago

Hi! I'm following the Guid Programming The Blockchain in C#! But in Proof of ownership as an authentication method section I noted that VerifyMessage() method no longer available. Is there any alternative to this method? Thanks!!!

var message = "I am Craig Wright";
var signature = "IN5v9+3HGW1q71OqQ1boSZTm0/DCiMpI8E4JB1nD67TCbIVMRk/e3KrTT9GvOuu3NGN0w8R2lWOV2cxnBp+Of8c=";

var address = new BitcoinPubKeyAddress("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa", Network.Main);
bool isCraigWrightSatoshi = address.VerifyMessage(message, signature);

Console.WriteLine("Is Craig Wright Satoshi? " + isCraigWrightSatoshi);
NicolasDorier commented 2 years ago

Closing this as it's dup of https://github.com/MetacoSA/NBitcoin/issues/1094, but long story short, I removed the feature.