MⒶrtin HⒶboⓋštiak [ARCHIVE] on Nostr: 📅 Original date posted:2015-02-05 📝 Original message:That's exactly what I ...
đź“… Original date posted:2015-02-05
đź“ť Original message:That's exactly what I though when seeing the RedPhone code, but after
I studied the commit protocol I realized it's actually secure and
convenient way to do it. You should do that too. :)
Shortly, how it works:
The initiator of the connection sends commit message containing the
hash of his temporary public ECDH part, second party sends back their
public ECDH part and then initiator sends his public ECDH part in
open. All three messages are hashed together and the first two bytes
are used to select two words from a shared dictionary which are
displayed on the screen of both the initiator and the second party.
The parties communicate those two words and verify they match.
If an attacker wants to do MITM, he has a chance of choosing right
public parts 1:65536. There is no way to brute-force it, since that
would be noticed immediately. If instead of two words based on the
first two bytes, four words from BIP39 wordlist were chosen, it would
provide entropy of 44 bits which I believe should be enough even for
paranoid people.
How this would work in Bitcoin payment scenario: user's phone
broadcasts his name, merchant inputs amount and selects the name from
the list, commit message is sent (and then the remaining two
messages), merchant spells four words he sees on the screen and buyer
confirms transaction after verifying that words match.
2015-02-06 0:46 GMT+01:00 Eric Voskuil <eric at voskuil.org>:
> On 02/05/2015 03:36 PM, MⒶrtin HⒶboⓋštiak wrote:
>>> A BIP-70 signed payment request in the initial broadcast can resolve the
>>> integrity issues, but because of the public nature of the broadcast
>>> coupled with strong public identity, the privacy compromise is much
>>> worse. Now transactions are cryptographically tainted.
>>>
>>> This is also the problem with BIP-70 over the web. TLS and other
>>> security precautions aside, an interloper on the communication, desktop,
>>> datacenter, etc., can capture payment requests and strongly correlate
>>> transactions to identities in an automated manner. The payment request
>>> must be kept private between the parties, and that's hard to do.
>>
>> What about using encryption with forward secrecy? Merchant would
>> generate signed request containing public ECDH part, buyer would send
>> back transaction encrypted with ECDH and his public ECDH part. If
>> receiving address/amount is meant to be private, use commit protocol
>> (see ZRTP/RedPhone) and short authentication phrase (which is hard to
>> spoof thanks to commit protocol - see RedPhone)?
>
> Hi Martin,
>
> The problem is that you need to verify the ownership of the public key.
> A MITM can substitute the key. If you don't have verifiable identity
> associated with the public key (PKI/WoT), you need a shared secret (such
> as a secret phrase). But the problem is then establishing that secret
> over a public channel.
>
> You can bootstrap a private session over the untrusted network using a
> trusted public key (PKI/WoT). But the presumption is that you are
> already doing this over the web (using TLS). That process is subject to
> attack at the CA. WoT is not subject to a CA attack, because it's
> decentralized. But it's also not sufficiently deployed for some scenarios.
>
> e
>
Published at
2023-06-07 15:29:46Event JSON
{
"id": "3a5713ebcfda905c4039cfc74c21c6f1d87c3d4248388c0b868f223265810427",
"pubkey": "8e86fc16ba0a39c10614cf22b657d2bd0244999b590ae5f82344a361ed4121f2",
"created_at": 1686151786,
"kind": 1,
"tags": [
[
"e",
"5faa01afc6e1169d2a086249776b02fde5bfa851fa5197990b9cbcbf92c53f4a",
"",
"root"
],
[
"e",
"e1b47a8788844896bf7e88ac093f6866eb218ab8802200b0225a49dfc24c9eed",
"",
"reply"
],
[
"p",
"82205f272f995d9be742779a3c19a2ae08522ca14824c3a3b01525fb5459161e"
]
],
"content": "📅 Original date posted:2015-02-05\n📝 Original message:That's exactly what I though when seeing the RedPhone code, but after\nI studied the commit protocol I realized it's actually secure and\nconvenient way to do it. You should do that too. :)\n\nShortly, how it works:\nThe initiator of the connection sends commit message containing the\nhash of his temporary public ECDH part, second party sends back their\npublic ECDH part and then initiator sends his public ECDH part in\nopen. All three messages are hashed together and the first two bytes\nare used to select two words from a shared dictionary which are\ndisplayed on the screen of both the initiator and the second party.\nThe parties communicate those two words and verify they match.\n\nIf an attacker wants to do MITM, he has a chance of choosing right\npublic parts 1:65536. There is no way to brute-force it, since that\nwould be noticed immediately. If instead of two words based on the\nfirst two bytes, four words from BIP39 wordlist were chosen, it would\nprovide entropy of 44 bits which I believe should be enough even for\nparanoid people.\n\nHow this would work in Bitcoin payment scenario: user's phone\nbroadcasts his name, merchant inputs amount and selects the name from\nthe list, commit message is sent (and then the remaining two\nmessages), merchant spells four words he sees on the screen and buyer\nconfirms transaction after verifying that words match.\n\n2015-02-06 0:46 GMT+01:00 Eric Voskuil \u003ceric at voskuil.org\u003e:\n\u003e On 02/05/2015 03:36 PM, MⒶrtin HⒶboⓋštiak wrote:\n\u003e\u003e\u003e A BIP-70 signed payment request in the initial broadcast can resolve the\n\u003e\u003e\u003e integrity issues, but because of the public nature of the broadcast\n\u003e\u003e\u003e coupled with strong public identity, the privacy compromise is much\n\u003e\u003e\u003e worse. Now transactions are cryptographically tainted.\n\u003e\u003e\u003e\n\u003e\u003e\u003e This is also the problem with BIP-70 over the web. TLS and other\n\u003e\u003e\u003e security precautions aside, an interloper on the communication, desktop,\n\u003e\u003e\u003e datacenter, etc., can capture payment requests and strongly correlate\n\u003e\u003e\u003e transactions to identities in an automated manner. The payment request\n\u003e\u003e\u003e must be kept private between the parties, and that's hard to do.\n\u003e\u003e\n\u003e\u003e What about using encryption with forward secrecy? Merchant would\n\u003e\u003e generate signed request containing public ECDH part, buyer would send\n\u003e\u003e back transaction encrypted with ECDH and his public ECDH part. If\n\u003e\u003e receiving address/amount is meant to be private, use commit protocol\n\u003e\u003e (see ZRTP/RedPhone) and short authentication phrase (which is hard to\n\u003e\u003e spoof thanks to commit protocol - see RedPhone)?\n\u003e\n\u003e Hi Martin,\n\u003e\n\u003e The problem is that you need to verify the ownership of the public key.\n\u003e A MITM can substitute the key. If you don't have verifiable identity\n\u003e associated with the public key (PKI/WoT), you need a shared secret (such\n\u003e as a secret phrase). But the problem is then establishing that secret\n\u003e over a public channel.\n\u003e\n\u003e You can bootstrap a private session over the untrusted network using a\n\u003e trusted public key (PKI/WoT). But the presumption is that you are\n\u003e already doing this over the web (using TLS). That process is subject to\n\u003e attack at the CA. WoT is not subject to a CA attack, because it's\n\u003e decentralized. But it's also not sufficiently deployed for some scenarios.\n\u003e\n\u003e e\n\u003e",
"sig": "6ce923c25a13bfe290b5388448ccef4d3c929431889d30c680ac3aeb695d20dcbf39fb7409e99ecb1611eb744d6bc4614ade9df190260e155cd8b21bb467fabe"
}