Izitors

Untitled

Feb 27th, 2019
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Maybe I'm doing something wrong? For example, I want to take two ECDSA signatures:
  2.  
  3. https://blockchain.info/tx/5bfe820601393ba7e5a7e447076f1b1a28f78388f38bc0885684c7503fd6d838?format=hex
  4. https://blockchain.info/tx/fcd0ddf5c96d160acc520a6e014e070c293eaf04a8b5145f9c705bb2a36c08b0?format=hex
  5.  
  6. Parameters "secp256k"
  7.  
  8. G = Point(79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798,
  9. 483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8,
  10. FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141)
  11.  
  12.  
  13. X = FB9797732D33104CEF8832D5FADD9105898C15770E2C37B31A59394498EB1216
  14.  
  15. K = 247441A043B4DFD16A39D3834C596B351D1C3337BB48DC8D1113E9CAB2DE53A0
  16. K` = F9A0A1E22636D8662957B3D62066F182CD1FA37D3457E423CFC8EDB58793DED0
  17.  
  18. C = K - K`
  19.  
  20. C = D52C6041E281F894BF1DE052D40D864DB0037045790F0796BEB503EAD4B58B30
  21.  
  22. R = c7f2410f60239e6840450c178e631a7da50a49dbf9d39699522479dc3948d179
  23.  
  24. R` = eb5f3e95e95f5ca475d909fbb5e31c289086d48901e135e2512c4bd71dee75a4
  25. (C * G) = DDAAE15676A86275A5D793E5435329C5C3DFE8782E8CB825ED0D0E46E7AA1533
  26. R = R` + (C * G) = C90A1FEC6007BF1A1BB09DE0F93645EF99B7E01A81254DCC7E66FB9135624996
  27.  
  28. Why then do I get this value:
  29.  
  30. R = C90A1FEC6007BF1A1BB09DE0F93645EF99B7E01A81254DCC7E66FB9135624996
  31.  
  32. /////////////////////////////////////////////////////////////////////////////////////////
  33.  
  34. C = ( '112909712105732081389330077709454477435086209016299520698255289049240837545680' )- ( '16488669742746221602995452003129500679972483451141844568700407383075629978528' )
  35.  
  36. C =
  37. 96421042362985859786334625706324976755113725565157676129554881666165207567152
  38. >> D52C6041E281F894BF1DE052D40D864DB0037045790F0796BEB503EAD4B58B30
  39.  
  40. /////////////////////////////////////////////////////////////////////////////////////////
  41.  
  42. C = ( '112909712105732081389330077709454477435086209016299520698255289049240837545680' )- ( '16488669742746221602995452003129500679972483451141844568700407383075629978528' )
  43.  
  44. C =
  45. 96421042362985859786334625706324976755113725565157676129554881666165207567152
  46. >> D52C6041E281F894BF1DE052D40D864DB0037045790F0796BEB503EAD4B58B30
  47.  
  48. /////////////////////////////////////////////////////////////////////////////////////////
  49.  
  50. 100263058761893758245053910715017632302286371709911229850774955869976002172211
  51. DDAAE15676A86275A5D793E5435329C5C3DFE8782E8CB825ED0D0E46E7AA1533
  52.  
  53. R = ( '106461801838104095762086320700599353403222830952901207615789469757953509586340' )+ ( '100263058761893758245053910715017632302286371709911229850774955869976002172211' )
  54.  
  55. R =
  56. 206724860599997854007140231415616985705509202662812437466564425627929511758551
  57. >>
  58.  
  59. N = 115792089237316195423570985008687907852837564279074904382605163141518161494337
  60.  
  61.  
  62. R = ( '206724860599997854007140231415616985705509202662812437466564425627929511758551' )- ( '115792089237316195423570985008687907852837564279074904382605163141518161494337' )
  63.  
  64. R =
  65. 90932771362681658583569246406929077852671638383737533083959262486411350264214
  66. >> C90A1FEC6007BF1A1BB09DE0F93645EF99B7E01A81254DCC7E66FB9135624996
  67.  
  68.  
  69. /////////////////////////////////////////////////////////////////////////////////////////
RAW Paste Data