Eth2 App allows you to send Ether or tokens to anyone simply by links.
Eth2 allows to send ether to anyone even without Ethereum wallet. The receiver will get the special link and be verified using phone number. The only requirement for you as a sender to have the Web3 compatible Ethereum wallet with sufficient balance and the phone number of the person you are willing to send ether to. You will need to share a special message with the receiver with the link containing all the instructions, following which he or she will download the wallet (or use existing one) and receive assets to it.
You can play with beta at https://eth2.io. The App supports Ethereum Main and Ropsten Test networks right now.
- Sender generates transit private-public key pair, deposits ether to Escrow Smart Contract and assigns transit public key to the deposit. On withdrawal Escrow Smart Contract verifies that receiver's address is signed by the transit private key.
- Sender encrypts transit private key with random secret code and sends encrypted transit private key to verification server.
- Sender passes the secret code to receiver by the way he chooses (voice, sms, e-mail, etc.)
- Receiver types in his phone number and the secret code. Hashed phone verification request is sent to server. (So not at any point in time verification server has the transit private key.)
- Server sends the verification code via SMS to the phone entered.
- Receiver gets the code from SMS and types it in. If the code is correct, server returns encrypted transit private key to receiver.
- Receiver decrypts the transit private key with the secret code provided by sender and gets the transit private key. Receiver signs address of his choice with the transit private key. Receiver sends signed address to verification server.
- Verification server tries to withdraw ether from Escrow Smart Contract to signed address. If signature is correct, the transaction is executed and receiver gets the ether.
Works best with Trust Wallet on mobile. You can also use a Desktop Browser with installed Metamask or any Web3 compatible browsers. Go to https://eth2.io to use the App.
./src/controllers/SenderController
- controller for handling sender's requests
./src/controllers/ReceiverController
- controller for handling receiver's requests
./src/services/TwilioService
- service for SMS auth via Twilio
./src/services/TransferService
- service for handling interaction with Transfer models stored in MongoDB
./src/services/EscrowContratService
- service for handling interaction with Ethereum blockchain via e2pEscrow Contract.
This repo contains NodeJS server code for handling SMS-authentication. Front-end code + smart-contracts are located in the separate repository - https://github.com/Eth2io/eth2-app
MIT Liscense