fabianbormann / cardano-peer-connect

This library aims to provide simple interfaces to implement CIP-0045 for dApps and wallets
Apache License 2.0
11 stars 4 forks source link

Feature/identicon #15

Closed marcuspuchalla closed 1 year ago

marcuspuchalla commented 1 year ago

The function getIdenticon was added to client and server.

With this function you can get a base64 encoded image of the current connection.

This image contains 7 charaters from [A-Z0-9] to quickly identify if the connection that has been establish is the same for server and client. In addtion the text color has 3 different colors and in the background different color gradients that make it more easy for the eye to identify the similarity.

With this we have 3*36^7, roughtly 235 billion combinations with only the displayed text which should make collisions very unlikely yet make it easy to identify that the connection is made with the correct endpoint.

fabianbormann commented 1 year ago

Great work @marcuspuchalla 🔥 💯