Title: Verify Bitcoin address signed message in C# Post by: apbarratt on March 05, 2014, 10:15:50 AM Hi guys,
I've been searching everywhere for this but can't find it anywhere. I'd like to verify a signed message's signature as being generated by a specific Bitcoin address using C#. I'm not a strong crypto-coder so I was hoping for a pre-made solution, I found the code at http://stackoverflow.com/a/20400041 though this only seems to verify that the signature is valid, not that it came from a specified address. In essence, I am looking for a method like so Code: public static bool VerifySignature(string address, string message, string signature) I found similar tools that do this in Python but would really appreciate a C# method and I suspect many others will appreciate it too. Does anyone know where I should look? It's entirely possible I've just been using the wrong search terms in my hunt :) Andy Title: Re: Verify Bitcoin address signed message in C# Post by: mcaizgk2 on March 06, 2014, 02:43:56 PM You can verify the message as a whole using the verifymessage bitcoind' API RPC command. Take a look at: https://github.com/GeorgeKimionis/BitcoinLib for a working C# implementation, you then need to call: VerifyMessage(String bitcoinAddress, String signature, String message).
Title: Re: Verify Bitcoin address signed message in C# Post by: ning on March 08, 2014, 01:41:17 PM There's also an Erlang implementation:
https://bitcointalk.org/index.php?topic=336430 |