How to extract R,S,Z from raw bitcoin transaction ?

asked 2021-02-24 09:37:55 +0100

Duglas gravatar image

How to extract R,S,Z from raw bitcoin transaction ?

Raw transaction:

"0100000000010407211ffc188d0ac24abeba626a1b7e2eb6ed6c2de78349b0e58c44c564ed783001000000232200209156f88c78df8658af48328a6dd95fb926bdbd471c4f69eefd9bd05640890593ffffffffef9803fd1cda0aa01472ebd62099fa1ca91ef4e35bc3a27e784bf7389263039c010000002322002093373a8d3044bb88cf4abad2cc8fec31caa33c1df9ce17cbc5d9574a21ae4595ffffffff15277b986e306fb5796036b1d9c244339e44bb3369da77863d14ad80f256f3a60200000023220020a271a0897f1b7a7f0db9acb517ae2b6d53dda3833808d02c6a1cc21dc1a68680ffffffff7d6ac10f1dea422cad1ed99c76f8cb53a62f6ab6eae3298052ad72dff4e2b3c510000000232200206485b5c8ba1df93fb19b5cb45844d249798783144b4ec3f622b8e94c623b8740ffffffff1bc36f0600000000001976a914501fed88e1e1dd25afcad2962733d5d3e117803988ac186f1100000000001976a914467be8fb85d1db6a9dba9f90a6c4f6ad1ef3e68488ac024b1200000000001976a914567a53c318344f867c7daf4cac3a08131ceb6bd288acf0d51500000000001976a914f36b60bca73866bdc7a59693a00795203be9b3f888ace8a31a000000000017a9148d2a9aebebcd866a771b29dead3e5bae8afe567e8719b91c00000000001976a9149f41b0748ef8bc3dda565f7387d4032dd9dcbf1788acdfb41e00000000001976a9144995912054ce5a24aaec781041f3c4fc3775275a88ac949e27000000000017a914ee856b081b5edf1c0a1444173114dc7a4d6866cc8751673e00000000001976a91402210d231279e5aec379841cc796605cf650d1e388ac982047000000000017a9143ff8b9b0dab24a74e4b644a371f2050edb3445c6872b816500000000001976a914b2b043ccde51ac2557acec54584cd7636db6ccf988ac3deb9100000000001976a91441c67e076f8888bced1d6477d0173b595be1365c88ac70ae9500000000001976a914a5566504dac07a82d857755546b7b8a834aab46f88ace9feb8000000000017a91408e7320fd09213a2a6f3c5f3553b4bcca7658c0287a42e1d01000000001976a9148b3d375d8a4e8f706eeaa42b91476fb50023e11d88acf0b47c01000000001976a914dd3409356f805e9de31cb21be223c1ade77533c188ace0e9a701000000001976a914ca983f6e6a705a73bab64e1885591486f91f85c888ac00639f02000000001976a914a33b8af1dd046b6943f264242848450361c9d43888aca08a2a030000000017a914fb0f3b4223d3165add09061ca1ebb883781cb23d87c3bf3903000000001976a914656d1bec789a32898c53a790397fa626415f689788ace858c5030000000017a9148332c4a73a8d18d20ec016f1f101c96e12fb06f587a83ebc050000000017a9146681be5647e26eacad22aad43f87e3be0ec5428287b01df5050000000017a914c6368ec6d0db4741087e660357e9befdf3988140875831c4070000000017a9147f8e899c743e42bed60bd23e7a9a49f649c54aaf87407d67080000000017a914e53b5c8e4b24db84f999c77ec6e5352a824d5d5587534aa20b000000001976a914d5891616e7c864d4a70a8912244937529fe3201488acd359480c0000000017a9148ccb536e2855a000b317f8f41880a66b02401173870400483045022100f7e28605c2259d6c20fb13b4667a03717a1eff239d18bfd18df9e06a7f027e33022045db5fb6223a006e0c73d2f8ccf8134557270aac74c5c900fe6bd657e5caade80147304402202241fccf1bbfe3759d0b058b9ba5cc19dbb697394bae7af48b967c672069837c022049839de12a5e2c320c743f9fe7ef2b42a4ae749b254ce0643cccfbf9f9bd6ca201695221036277ba6b7a409654e55d9e65ec9b8eba592f7181319d6b6c4b31124a237dfee0210316eb4373bf3f543c5a8a8d793da8093b6f5d6119819c443e4330879e87c6cbca2102e337b46780e782338e6515eddacd057df52d13b4b0fdb400b476736adc0c58db53ae040047304402210085d41283d03b846ceafef6f73ab2b2757ea2d7ffab936fb6f2ca4dcb01e849f4021f216df763d3c1452f2f387f78ee1919bc1dcc4e0f12b57f027fd106c77b94ef0147304402204d43ee336d82c0732300a43001a9cea95d1ad855d038d080940c1c19a5eebe8c02205629f1aeb8fa15d212902840336d820f94850f8963e88f38018316f7c659feb80169522103d3e2c46cf79e17bd0049e291ad622b2ef695266201be8d670a2b0053d794b38c2102ffe0d0f11358118e1e4778fe89b927e9ac1d4efd0b64d82b6aa1863cb251ac162103955996ac3432ef9d86c744dd4985e9dad21f1a27dddf2f901a7e3f5227558b0053ae0400483045022100b6441f0d800253e31f02ce09844608129d4b5de836c3cf787788b30463a41bdd022079d868a8baf384a89c9582d5bfc2df566701a5f122474a92b737490c6a31da2501473044022031af8cbddd5a2705d192520b616d0d57dbf1ac66a3b6ac843f4cd25466ab7b4002205854c091b55c0fc0c42b018323c11902a812a6168bca36061d698aa3cd4bcd910169522103698986974e934754842b7470754db38daabc878f8ee901eb2465871684167a2621027d8ac74c1dd8aabc8ee7b800e34ff6954c986f7335ecde36ef74ca229abc47632103c63893ee104eda8e3a08859ff4537eee5f28990479363df57e6dcc99e889528753ae04004830450221009ebb68fb2722ca14c939f075c8d7174b5ba525b999af98177f779951fd2ac72d022079e73d05338b3e8da500997520d3aface2aab6900bdfdcd6f286f5b07b8d22a201473044022036de3bea5c9bae724f985c205244ad7c1709fcce67164647afb3deb13de0ae0e022065d53853c5f0309b1572baaa5653c26ee994ba89cc4b2d93a2396c324c30e3f90169522103e5054f521c5feab456d1df90a7fa81043c5a7965181298b4e8ef9fa79279fd6121037bb4bde08716830ef2b544510722cd10a4e32c321cff72abae83043fdc52

83472103a5deb4f7460644294c784bfcd76f6142a02a2d190925b3aa83b02da566ac27a153ae81b90900"

All codes what I was found not give a error.

Exampe of code:

Good TX for code - h*://pastebincom/T68NTscw

Bad TX for code - h*:// pastebincom/titSwmBX

Bad TX code respond this error - h*://pastebincom/keKPa5Dd

Error:

D:\Get_R_S_Z_RawTx-ad78efd92ca8fdbc5525d172c13f8943c478f16d>python Get_R_S_Z_RawTx.py Traceback (most recent call last): File "Get_R_S_Z_RawTx.py", line 7, in <module> m = shiky_Utils.parseTxn(tx) File "D:\Get_R_S_Z_RawTx-ad78efd92ca8fdbc5525d172c13f8943c478f16d\shiky_Utils.py", line 37, in parseTxn sigLen = int(script[0:2], 16) ValueError: invalid literal for int() with base 16: ''

HELP ME PLEASE ?

GIT with all needed for run modules - h*://githubcom/5l1v3r1/Get_R_S_Z_RawTx/blob/master/shiky_Utils.py

edit retag flag offensive close merge delete

Comments

Please explain the connection with sage / sagemath. If you really want an answer, please provide more context. What is the given string, how is it processed, which modules / libraries are involved in a standard way, what are $R, S, Z$ (conceptually) et caetera.

dan_fulea gravatar imagedan_fulea ( 2021-03-05 15:11:13 +0100 )edit