|
| 1 | +--- |
| 2 | +title: 'Article: Connecting Wallets' |
| 3 | +slug: './understanding-connecting-wallets' |
| 4 | +sidebar_position: 102 |
| 5 | +--- |
| 6 | + |
| 7 | +# Introduction |
| 8 | + |
| 9 | +Mailchain gives you the ability to check for messages sent to any of your blockchain addresses through your unified inbox. Once you register your blockchain address, you can start sending and receiving messages via that address. |
| 10 | + |
| 11 | +Use cases include receiving notifications and communications based on your on-chain activities. You can also send messages from that address, and recipients can verify that the message originated from that address. |
| 12 | + |
| 13 | +## How it works |
| 14 | + |
| 15 | +Your Mailchain account has an identity key, which is used to generate messaging keys. When you register an address, you prove that you own it. It can then be associated with a messaging key. When someone sends a message to your address, the application looks up your address at the registry lookup and receives a response containing the corresponding messaging key for your address. |
| 16 | + |
| 17 | +## Bob and Alice Use Case Example |
| 18 | + |
| 19 | +Bob wants to send a message to Alice to let her know he has a new art collection coming out. He only knows the ethereum address she used when she bought his last piece. Alice has registered her address in Mailchain by signing a an approval message with her wallet. Bob sends a message to Alice's address. In the background, the Mailchain application looks up Alice's address and gets the corresponding messaging key. The message is encrypted and routed using the messaging key details. |
| 20 | + |
| 21 | +When Alice opens her inbox, she can see a message from Bob sent to her ethereum address. Alice's identity and message key details are used by the application to obtain and decrypt the message body, but the private key information is never revealed. |
| 22 | + |
| 23 | +Bob has no way of knowing any other address Alice has linked to her Mailchain unified inbox. |
| 24 | +When Bob receives a reply from Alice, he can check that the message key details are valid. |
| 25 | +Alice never had to enter any sensitive information to Mailchain, and she retains full control and ownership of her private keys for encryption and decryption. |
| 26 | + |
| 27 | +## How to connect and register your wallet address |
| 28 | + |
| 29 | +Follow these steps to connect and register an existing blockchain wallet address: |
| 30 | + |
| 31 | +1. Click a button to open the connect wallet modal: |
| 32 | + |
| 33 | +  |
| 34 | + |
| 35 | +1. Select a wallet provider (e.g. Metamask, WalletConnect, etc.), then click 'Connect wallet' |
| 36 | + |
| 37 | +  |
| 38 | + |
| 39 | +1. Choose the address to connect, then click Next. |
| 40 | + |
| 41 | +  |
| 42 | + |
| 43 | +1. Confirm to permit the Mailchain app to read your address. |
| 44 | + |
| 45 | +  |
| 46 | + |
| 47 | +The address is now connected, but we need to register it in Mailchain. To do this: |
| 48 | + |
| 49 | +1. Click 'Verify Address' |
| 50 | + |
| 51 | +  |
| 52 | + |
| 53 | +1. A 'Signature Request' will pop up in your wallet. It contains the following text: |
| 54 | + |
| 55 | + > Message: <br /> |
| 56 | + > Welcome to Mailchain! <br /> |
| 57 | + > |
| 58 | + > Please sign to start using this address with Mailchain. This will not trigger a blockchain transaction or cost any gas fees. <br /> |
| 59 | + > |
| 60 | + > What's happening? <br /> |
| 61 | + > A messaging key will be registered with this address and used only for messaging. It will replace any existing registered messaging keys. <br /> |
| 62 | + > |
| 63 | + > Technical Details: <br /> |
| 64 | + > Address: `your_address` <br /> |
| 65 | + > Messaging key: `a_generated_messaging_key` <br /> |
| 66 | + > Nonce: `a_number` |
| 67 | +
|
| 68 | + Review the request and click sign. |
| 69 | + |
| 70 | +  |
| 71 | + |
| 72 | +  |
| 73 | + |
| 74 | +1. Your wallet will now be verified. You can click 'Done' to close the modal. |
| 75 | + |
| 76 | +  |
| 77 | + |
| 78 | +### Tips |
| 79 | + |
| 80 | +You will be able to see a folder in the sidebar for your registered address. To manage the address, click on 'Settings'. |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +When you compose a message, you can select the address to send from in the message dropdown. |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +## How to remove a wallet |
| 89 | + |
| 90 | +1. To remove a registered wallet address from your inbox, go to 'Settings' |
| 91 | + |
| 92 | +  |
| 93 | + |
| 94 | +1. Click on 'Delete' for the account you wish to remove. |
| 95 | + |
| 96 | +  |
| 97 | + |
| 98 | +1. Confirm deletion by entering in the full address, then Confirm. |
| 99 | + |
| 100 | +  |
| 101 | + |
| 102 | +Your inbox will no longer check for new messages for this address. |
0 commit comments