Title: How to verify ECDSA of a sample litecoin tx using pycoin? Post by: StephenMorse on October 29, 2014, 03:23:46 AM The question is laid out here: http://bitcoin.stackexchange.com/questions/32194/how-to-verify-ecdsa-of-a-sample-litecoin-tx-using-pycoin
Looking for some help, might even give a BTC tip for a really good answer! Title: Re: How to verify ECDSA of a sample litecoin tx using pycoin? Post by: hhanh00 on October 29, 2014, 08:49:09 AM Did you try reversing the bytes of the hash? The ToString() seems to be flipping them.
Title: Re: How to verify ECDSA of a sample litecoin tx using pycoin? Post by: StephenMorse on October 29, 2014, 05:03:12 PM I had not tried reversing the hash. I tried, still no luck.
Thank you, though. Title: Re: How to verify ECDSA of a sample litecoin tx using pycoin? Post by: hhanh00 on October 30, 2014, 02:18:37 AM Should work with the hash reversed
Code: Security.addProvider(new BouncyCastleProvider()) Code: (16980852742628685644910148209432903671752523748137798365042615749252787915822,29128631674996429161026020280872095602306489412358940898112602484852964420045) Title: Re: How to verify ECDSA of a sample litecoin tx using pycoin? Post by: StephenMorse on October 30, 2014, 04:24:48 AM Thank you very much! Seeing your ArrayUtils.reverse clarified what the issue was for me.
When I reversed the hash, I turned "1234" into "4321", where as it should have been "3412". |