Research/Bitcoin Dev Archive / lightning-dev list
visual identification of payee node id
5 messages, Dec 23, 2018, to Jan 2, 2019. Started by Pavol Rusnak.
Pavol Rusnak, William Casarin, Maximillian George, Eugene, ZmnSCPxj
Hi all!
Currently, when I perform a payment via QR code, I usually check the payee node id (public key) in the send dialog. However, this is a rather long hex value, so for example Eclair app shows just the beginning and the end of the value.
Idea: Can we show an identicon (for example https://jdenticon.com/) of payee node id (= public key) next to the QR code, so user can visually quickly check whether the recipient is correct?
We'd need to add this to UI of all Lightning user-facing wallets to make sense, though.
Pavol Rusnak via Lightning-dev <lightning-dev at lists.linuxfoundation.org> writes:
Quoted text (10 lines)
> Hi all! > > Currently, when I perform a payment via QR code, I usually check the > payee node id (public key) in the send dialog. However, this is a rather > long hex value, so for example Eclair app shows just the beginning and > the end of the value. > > Idea: Can we show an identicon (for example https://jdenticon.com/) of > payee node id (= public key) next to the QR code, so user can visually > quickly check whether the recipient is correct?
I think it would be interesting if someone came up with a visual hashing algorithm, where small changes in the inputs had uniformly random visual outputs. I was testing jdenticon with my node id:
03f3c108ccd536b8526841f0a5c58212bb9e6584a1eb493080e7c1cc34f82dad71
I was surprised to see that small changes to the first digit didn't change the visual output at all. Whether or not this is a useful property in this use case, it's something to keep in mind.
Cheers, Will
Why not a confirmation phrase of a few words? This should be easier to implement and fit into a pre-existing design programme. Given a pool of enough words this would surely be as reliable as an identicon, no?
Best regards, Max
On 29 Dec 2018, 17:23 +0100, William Casarin <jb55 at jb55.com>, wrote:
Quoted text (33 lines)
> Pavol Rusnak via Lightning-dev <lightning-dev at lists.linuxfoundation.org > writes: > > > Hi all! > > > > Currently, when I perform a payment via QR code, I usually check the > > payee node id (public key) in the send dialog. However, this is a rather > > long hex value, so for example Eclair app shows just the beginning and > > the end of the value. > > > > Idea: Can we show an identicon (for example https://jdenticon.com/) of > > payee node id (= public key) next to the QR code, so user can visually > > quickly check whether the recipient is correct? > > I think it would be interesting if someone came up with a visual hashing > algorithm, where small changes in the inputs had uniformly random visual > outputs. I was testing jdenticon with my node id: > > 03f3c108ccd536b8526841f0a5c58212bb9e6584a1eb493080e7c1cc34f82dad71 > > I was surprised to see that small changes to the first digit didn't > change the visual output at all. Whether or not this is a useful > property in this use case, it's something to keep in mind. > > Cheers, > Will > > -- > https://jb55.com > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev
Hi,
how about using of Chernoff Faces to identify node’s public key? Since humans are best fit to recognize small changes in faces and to remember them.
To achieve avalanche effect from changing a private key to produce much different face, one can just plug node’s public key into a cryptographic hash function and then plug a result into Chernoff Face generator, thus making a public key change very easy to notice.
Вкл вс, дек. 23, 2018 в 21:49, Pavol Rusnak via Lightning-dev <lightning-dev at lists.linuxfoundation.org> написал(а):
Quoted text (23 lines)
> Hi all! > > Currently, when I perform a payment via QR code, I usually check the > payee node id (public key) in the send dialog. However, this is a rather > long hex value, so for example Eclair app shows just the beginning and > the end of the value. > > Idea: Can we show an identicon (for example https://jdenticon.com/) of > payee node id (= public key) next to the QR code, so user can visually > quickly check whether the recipient is correct? > > We'd need to add this to UI of all Lightning user-facing wallets to make > sense, though. > > -- > Best Regards / S pozdravom, > > Pavol "stick" Rusnak > CTO, SatoshiLabs > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev
Good morning Eugene,
Quoted text (2 lines)
> > how about using of Chernoff Faces to identify node’s public key? Since humans are best fit to recognize small changes in faces and to remember them.
Why do humans have this circuitry? Such strange objects... One could wonder about sentients without such circuitry. They would not be served well by this. (Notice the use of "they" here. I am not such a sentient since I am human. Thus, the use of "they" in the above setence.)
A side effect of this would be that humans would obsessively reroll their pubkey until they acquire a face they like. This will be a source of much amusement and so on. For this reason alone, I highly approve this suggestion.
Regards, ZmnSCPxj
Quoted text (28 lines)
> > To achieve avalanche effect from changing a private key to produce much different face, one can just plug node’s public key into a cryptographic hash function and then plug a result into Chernoff Face generator, thus making a public key change very easy to notice. > > Вкл вс, дек. 23, 2018 в 21:49, Pavol Rusnak via Lightning-dev <lightning-dev at lists.linuxfoundation.org> написал(а): > > > Hi all! > > > > Currently, when I perform a payment via QR code, I usually check the > > payee node id (public key) in the send dialog. However, this is a rather > > long hex value, so for example Eclair app shows just the beginning and > > the end of the value. > > > > Idea: Can we show an identicon (for example https://jdenticon.com/) of > > payee node id (= public key) next to the QR code, so user can visually > > quickly check whether the recipient is correct? > > > > We'd need to add this to UI of all Lightning user-facing wallets to make > > sense, though. > > > > -- > > Best Regards / S pozdravom, > > > > Pavol "stick" Rusnak > > CTO, SatoshiLabs > > _______________________________________________ > > Lightning-dev mailing list > > Lightning-dev at lists.linuxfoundation.org > > https://www.learnbitcoin.com/archive/lists/lightning-dev