{"type":"rich","version":"1.0","author_name":"npub1s4lj77xuzcu7wy04afcr487f0r3za0f8n2775xrpkld2sv639mjqsd44kw","author_url":"https://nostr.ae/npub1s4lj77xuzcu7wy04afcr487f0r3za0f8n2775xrpkld2sv639mjqsd44kw","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2016-01-08\n📝 Original message:On Fri, Jan 8, 2016 at 7:02 AM, Rusty Russell \u003crusty at rustcorp.com.au\u003e wrote:\n\n\u003e Matt Corallo \u003clf-lists at mattcorallo.com\u003e writes:\n\u003e \u003e Indeed, anything which uses P2SH is obviously vulnerable if there is\n\u003e \u003e an attack on RIPEMD160 which reduces it's security only marginally.\n\u003e\n\u003e I don't think this is true?  Even if you can generate a collision in\n\u003e RIPEMD160, that doesn't help you since you need to create a specific\n\u003e SHA256 hash for the RIPEMD160 preimage.\n\u003e\n\u003e Even a preimage attack only helps if it leads to more than one preimage\n\u003e fairly cheaply; that would make grinding out the SHA256 preimage easier.\n\u003e AFAICT even MD4 isn't this broken.\n\u003e\n\nIt feels like we've gone over that before, but I can never remember where\nor when. I believe consensus was that if we were using the broken MD5 in\nall the places we use RIPEMD160 we'd still be secure today because of\nSatoshi's use of nested hash functions everywhere.\n\n\n\u003e But just with Moore's law (doubling every 18 months), we'll worry about\n\u003e economically viable attacks in 20 years.[1]\n\n\n\u003e That's far enough away that I would choose simplicity, and have all SW\n\u003e scriptPubKeys simply be \"\u003c0\u003e RIPEMD(SHA256(WP))\" for now, but it's\n\u003e not a no-brainer.\n\n\nLets see if I've followed the specifics of the collision attack correctly,\nEthan (or somebody) please let me know if I'm missing something:\n\nSo attacker is in the middle of establishing a payment channel with\nsomebody. Victim gives their public key, attacker creates the innocent\nfund-locking script  '2 V A 2 CHECKMULTISIG' (V is victim's public key, A\nis attacker's) but doesn't give it to the victim yet.\n\nInstead they then generate about 2^81scripts that are some form of\npay-to-attacker ....\n... wait, no that doesn't work, because SHA256 is used as the inner hash\nfunction.  They'd have to generate 2^129 to find a cycle in SHA256.\n\nInstead, they .. what? I don't see a viable attack unless RIPEMD160 and\nSHA256 (or the combination) suffers a cryptographic break.\n\n\n-- \n--\nGavin Andresen\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20160108/aec650d3/attachment.html\u003e"}
