ts [ARCHIVE] on Nostr: 📅 Original date posted:2021-08-19 📝 Original message:Hello ZmnSCPxj, ZmnSCPxj ...
📅 Original date posted:2021-08-19
📝 Original message:Hello ZmnSCPxj,
ZmnSCPxj wrote on 8/16/21 5:34 AM:
> Good morning TS,
>
>> Entering a BTC address for a transaction can pose a risk of error (human or technical). While
>> there is a checksum integrated in BTC addresses already, this is used only at a technical
>> level and does not avoid entering a valid but otherwise wrong address. Moreover, it does not
>> improve the overall user experience.
>>
>> In case this hasn't been discussed before, I propose to implement a 3 or 4 digit code (lets
>> call it 4DC for this text), generated as checksum from the address. This 4DC should be shown
>> in all wallets next to the receiving address. When entering a new address to send BTC, the
>> sending wallet should also show the 4DC next to the entered address. This way, the sending
>> person can easily verify that the resulting 4DC matches the one from the receiving address.
>>
>> This would mean that a receiver would not only send his public address to the sender, but also
>> the 4DC. A minor disadvantage since a) it is not mandatory and b) it is very easy to do.
>> However, it would greatly reduce the probability of performing transactions to a wrong address.
>>
>> Technically, this is very easy to implement. The only effort needed is agreeing on a checksum
>> standard to generate the code. Once the standard is established, all wallet and exchange
>> developers can start implementing this.
>
Thanks for your comments.
> I think the "only" effort here is going to be the main bulk of the effort, and it will still take years of agreement (or sipa doing it, because every review is "either sipa made it, or we have to check *everything* in detail for several months to make sure it is correct").
I understand. If sipa could do it that would greatly simplify the process. Once an algorithm
for the generation of the code exists, it just needs to be communicated to wallet developers
and let it grow organically. No need of extensive testing, since it is only a very simple
function.
> In any case --- the last 5 characters of a bech32 string are already a human-readable 5-digit code, with fairly good properties, why is it not usable for this case?
Well, because
a) most people don't know that
b) it is specific to bech32
c) it is not easily readable being the last digits of a long address (although this could be
fixed by the wallet by showing those digits bigger or separately)
d) and most importantly: as mentioned in above my proposal, it only proves that an address is
valid, but not necessarily the correct one (perhaps the user copied the wrong address, there
was an old address in the clipboard, etc.)
> On the other side of the coin, if you say "the existing bech32 checksum is automatically checked by the software", why is forcing something to be manually checked by a human better than leaving the checking to software?
Not better, it should be on top. And not forced, but just as an optional check for the user.
The SW can (and should) only check that the address is valid (the SW doesn't know the user's
intent). Only the human can "double-check" an easy-to-read-code to quickly know that he is
doing the right thing. (Entering a valid but wrong address is even worse than entering an
invalid one, since the latter will be stopped by the wallet. But the former most likely
results in loosing the funds.)
Note: The code should never be entered manually or even copied together with the address in
one string. From the SW point of view, the code is an output only, never an input. It is
merely a visual verification for the user.
Example of use: person A calls via phone person B and says: "Send me 0.1 BTC to my address I
just sent you via whatsapp. When entering the address, make sure that you get the verification
code 4385."
Regards,
TS
>
>
> Regards,
> ZmnSCPxj
>
Published at
2023-06-07 22:58:07Event JSON
{
"id": "a42ee599693ed155f2e80afe4ad98a22ab327de1e726b78379a862cdcd143ec3",
"pubkey": "d21fc7e471e0d199f0d54f7c85aae7eb189ec6238ea9e961d3cd67d809840541",
"created_at": 1686178687,
"kind": 1,
"tags": [
[
"e",
"a33b3f0d53c98f3fc059fbd1e00cf1f7838bc50bfea2f6b6c05733132d02affb",
"",
"root"
],
[
"e",
"7c5f9afc808a9596a9a889bb170d4cf8de35fa66b176ab25a5a9a12ff75d3901",
"",
"reply"
],
[
"p",
"4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861"
]
],
"content": "📅 Original date posted:2021-08-19\n📝 Original message:Hello ZmnSCPxj,\n\nZmnSCPxj wrote on 8/16/21 5:34 AM:\n\u003e Good morning TS,\n\u003e \n\u003e\u003e Entering a BTC address for a transaction can pose a risk of error (human or technical). While\n\u003e\u003e there is a checksum integrated in BTC addresses already, this is used only at a technical\n\u003e\u003e level and does not avoid entering a valid but otherwise wrong address. Moreover, it does not\n\u003e\u003e improve the overall user experience.\n\u003e\u003e\n\u003e\u003e In case this hasn't been discussed before, I propose to implement a 3 or 4 digit code (lets\n\u003e\u003e call it 4DC for this text), generated as checksum from the address. This 4DC should be shown\n\u003e\u003e in all wallets next to the receiving address. When entering a new address to send BTC, the\n\u003e\u003e sending wallet should also show the 4DC next to the entered address. This way, the sending\n\u003e\u003e person can easily verify that the resulting 4DC matches the one from the receiving address.\n\u003e\u003e\n\u003e\u003e This would mean that a receiver would not only send his public address to the sender, but also\n\u003e\u003e the 4DC. A minor disadvantage since a) it is not mandatory and b) it is very easy to do.\n\u003e\u003e However, it would greatly reduce the probability of performing transactions to a wrong address.\n\u003e\u003e\n\u003e\u003e Technically, this is very easy to implement. The only effort needed is agreeing on a checksum\n\u003e\u003e standard to generate the code. Once the standard is established, all wallet and exchange\n\u003e\u003e developers can start implementing this.\n\u003e \n\n\nThanks for your comments.\n\n\n\u003e I think the \"only\" effort here is going to be the main bulk of the effort, and it will still take years of agreement (or sipa doing it, because every review is \"either sipa made it, or we have to check *everything* in detail for several months to make sure it is correct\").\n\nI understand. If sipa could do it that would greatly simplify the process. Once an algorithm \nfor the generation of the code exists, it just needs to be communicated to wallet developers \nand let it grow organically. No need of extensive testing, since it is only a very simple \nfunction.\n\n\n\u003e In any case --- the last 5 characters of a bech32 string are already a human-readable 5-digit code, with fairly good properties, why is it not usable for this case?\n\nWell, because\na) most people don't know that\nb) it is specific to bech32\nc) it is not easily readable being the last digits of a long address (although this could be \nfixed by the wallet by showing those digits bigger or separately)\nd) and most importantly: as mentioned in above my proposal, it only proves that an address is \nvalid, but not necessarily the correct one (perhaps the user copied the wrong address, there \nwas an old address in the clipboard, etc.)\n\n\n\u003e On the other side of the coin, if you say \"the existing bech32 checksum is automatically checked by the software\", why is forcing something to be manually checked by a human better than leaving the checking to software?\n\nNot better, it should be on top. And not forced, but just as an optional check for the user. \nThe SW can (and should) only check that the address is valid (the SW doesn't know the user's \nintent). Only the human can \"double-check\" an easy-to-read-code to quickly know that he is \ndoing the right thing. (Entering a valid but wrong address is even worse than entering an \ninvalid one, since the latter will be stopped by the wallet. But the former most likely \nresults in loosing the funds.)\n\nNote: The code should never be entered manually or even copied together with the address in \none string. From the SW point of view, the code is an output only, never an input. It is \nmerely a visual verification for the user.\n\nExample of use: person A calls via phone person B and says: \"Send me 0.1 BTC to my address I \njust sent you via whatsapp. When entering the address, make sure that you get the verification \ncode 4385.\"\n\nRegards,\nTS\n\n\n\u003e \n\u003e \n\u003e Regards,\n\u003e ZmnSCPxj\n\u003e",
"sig": "e87cfafdcede250b21980ad67c4cb27cb3145953453f47ae5d49ac01e605de91e650d520fb7f9791ca0b00acc25de599bb3cde37be63065937755fa8bf4903c4"
}