Bitcoin Forum
April 19, 2024, 04:00:39 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Maleability testing?  (Read 1076 times)
s2 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
August 08, 2017, 02:01:29 PM
 #1

Does anyone have any scripts or suggestions on how to test malleability issues in my wallet?

I.e. how do people make sure they handle this correctly?
1713499239
Hero Member
*
Offline Offline

Posts: 1713499239

View Profile Personal Message (Offline)

Ignore
1713499239
Reply with quote  #2

1713499239
Report to moderator
1713499239
Hero Member
*
Offline Offline

Posts: 1713499239

View Profile Personal Message (Offline)

Ignore
1713499239
Reply with quote  #2

1713499239
Report to moderator
1713499239
Hero Member
*
Offline Offline

Posts: 1713499239

View Profile Personal Message (Offline)

Ignore
1713499239
Reply with quote  #2

1713499239
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713499239
Hero Member
*
Offline Offline

Posts: 1713499239

View Profile Personal Message (Offline)

Ignore
1713499239
Reply with quote  #2

1713499239
Report to moderator
1713499239
Hero Member
*
Offline Offline

Posts: 1713499239

View Profile Personal Message (Offline)

Ignore
1713499239
Reply with quote  #2

1713499239
Report to moderator
amaclin1
Sr. Member
****
Offline Offline

Activity: 770
Merit: 305


View Profile
August 08, 2017, 09:13:02 PM
 #2

how do people make sure they handle this correctly?
... reading and understanding the program code? Grin

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
s2 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
August 09, 2017, 07:39:54 AM
 #3

Thanks but I'm interested in knowing what sort of malleability attacks are easy to do that I can test with?

Seems difficult to protect against it without usecases I could try on testnet.
Jolyquinzel
Jr. Member
*
Offline Offline

Activity: 58
Merit: 10


View Profile
August 12, 2017, 07:01:29 PM
 #4

how do people make sure they handle this correctly?
... reading and understanding the program code? Grin

genius
aaand what if u dont understand any in code?
amaclin1
Sr. Member
****
Offline Offline

Activity: 770
Merit: 305


View Profile
August 14, 2017, 05:40:23 AM
 #5

how do people make sure they handle this correctly?
... reading and understanding the program code? Grin

genius
aaand what if u dont understand any in code?
you will not understand testing results either  Tongue

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
s2 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
August 14, 2017, 01:44:55 PM
 #6

Anyone actually know how to do this?

This seems like a good read but no obvious script examples.
https://bitcointalk.org/index.php?topic=8392.msg122410#msg122410
amaclin1
Sr. Member
****
Offline Offline

Activity: 770
Merit: 305


View Profile
August 14, 2017, 02:29:56 PM
 #7

Anyone actually know how to do this?
How to do what?
Test your sources for finding malleability issues?
Ready to pay? I am a great pretender expert in malleability Smiley

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
s2 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
August 29, 2017, 09:27:18 AM
 #8

 Wink Thanks amaclin1.

I'm looking for steps to do a malleability test.  E.g. a python script or steps to issue a double spend using a malleability issue.

The only malleability attack I knew of before was the high/low S value, I'm certain there are others but not sure what they are or where to find them.

Guess what would be awesome is something that can run on testnet which issued two tx's for transferring funds from A->B but had two different txids...


come to mention it, perhaps that's all that is required?  I could just sign two identical transactions and issue them at the same time?
amaclin1
Sr. Member
****
Offline Offline

Activity: 770
Merit: 305


View Profile
August 29, 2017, 10:18:14 AM
 #9

come to mention it, perhaps that's all that is required? 
I could just sign two identical transactions and issue them at the same time?
This case is not a "true" malleability.
You always can create two transactions spending funds to two different destinations.
And only one will be confirmed.
Usually we care about Man-in-the-Middle. He should not do anything with your data.

There were several sources of malleability for standard (this is important!) bitcoin scripts.
The last was fixed with segwit transactions

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
tomtomtom7
Jr. Member
*
Offline Offline

Activity: 38
Merit: 18


View Profile
August 29, 2017, 12:56:24 PM
 #10

You could look at the malleability integration test in the Core repo:

https://github.com/bitcoin/bitcoin/blob/master/test/functional/txn_clone.py

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!