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

Retrieve ECDSA signature return wrong m hash #11

Open
ronix73 opened this issue Aug 24, 2022 · 2 comments
Open

Retrieve ECDSA signature return wrong m hash #11

ronix73 opened this issue Aug 24, 2022 · 2 comments

Comments

@ronix73
Copy link

ronix73 commented Aug 24, 2022

Something is wrong with Retrieve ECDSA signature R,S,Z from rawtx or txid online.
I tried on txid: ce9fa9cb962ae5a30fa4da5a8aae0c4b76b6268014015b4b38adb84d5d69624f


# TX1
tx_z = 'f2f21f36996c14c70c669ab1ccba10ab79c148748fb25ac58c2b8a4b748764ff'
tx_r = '763052a7c77f2689cadb58b339a7ea23152bfcc39028094fb078bd24928a2226'
tx_s = 'e2a1158fff5b1b5f49ef3e1df6984ae2ce8eccdf2f87137b8e066e5d967c766'
pub  = '0213841028dbe9616021858b8e1e3f32d58102aa8ba1ae5a520caeab71d19a5e43'
# TX1 VALID

# TX2
tx_z = 'ff04fb7a469a4a8d6858c63188e99413ba87e3bb9a26257130a957a6a7dfd15c'
tx_r = 'fde7125dc4a73be2c1a22512c176d393eb0568a9909453ce84617e5c98019fdd'
tx_s = '1bfcfabec9106935256e4dca057296d64521fc90dfe74aed0d35cc13a9686a68'
pub  = '03227c98f8cc660a00fa26ff434757617a4fa6a0078a94d0e3e6d974e81d0f18fe'
# TX2 NOT VALID (WRONG Z)

first signature have correct Z, but second Z is wrong. Signature is not valid.

Another example of txid: d49e18570f6059aa8c781c67acfbf9e9e4266e63b65e9f4016681d7c2e5fdfd9
On both signature return wrong hash ...

@kpot87
Copy link

kpot87 commented Dec 14, 2022

hi
can you show how you checked correct of z?
Tnx

@Taimor-artist
Copy link

\Downloads\rsz-main\rsz-main>python getz_input.py -txid 454c90738880a6635446805303c89871f0bb7b362d1ff9ff4e8646ff4e24ef49

Starting Program...
UnSupported Tx Input. Presence of Witness Data

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

3 participants