FraDeliro / DiveLane

Universal Ethereum payment system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DiveLane - Universal Ethereum payment system

Check out our presentation and screencast It will give you a brief overview of Dive Lane and it's message.

Freedom is essential. Privacy Matter!

What is it?

  • The universal way to sign transaction from any apps:
    • mobile
    • web
    • dApps
  • Single and secure place to store your private key.
  • Transactions signer

So, let's go deeper into those statements:

Features

  • Let you be free from hard-bonded solution like (Laptop + Chrome + MetaMask + Private key) binding.
  • No private key sharing needed! Store it at one place, sign anywhere!
  • Full support of EIP-681 (URI scheme) Even more:
  • Sign transactions and call arbitrary contract's methods via deep links

Purpose

The solution that we BUIDL: a single keystore that accessible from any other applications via deep links and QR codes. It is the most advanced regarding security, and also quite user-friendly.

Kinda bridge between scientists and crypto-geeks and regular programmers:

Lots of experienced developers decline creation of DApps because of its technical hardness and, as a result, those apps are mostly written by scientific people, which don't know how to create excellent UX experience for their users. We want to provide a convenient way to avoid interaction with storing keys, signing and sending transactions, so great mobile developers could come into play and BUIDL amazing apps, without worrying about all that math around blockchain. We did all the hard-lifting cryptography job done for you!

Contribution:

We are using Swiftlit along with Travis in our project, so you should better have swiftlint installed locally on your machine before contributing. Don't be afraid, it's really simple to install. Just run brew install swiftlint. If you don't have homebrew installed - run ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" firstly.

In order to manually run autocorrection, print swiftlint autocorrect in the project folder via terminal. However, every time you build the project this command will be called automatically.

Usage:

Examples of EIP681 links:

  • If you want to specify gasPrice, gasLimit just add it to the end of the link:
"ethereum:0xaaf3A96b8f5E663Fc47bCc19f14e10A3FD9c414B@4/pay?uint256=100000&value=1000&gasPrice=700000&gasLimit=27500"

Here pay is just a method on smart contract with the given address and @4 specifies network id(which is Rinkeby in that case). uint256=1000000 is a parameter for the given method, uint256 is a type of the parameter and 1000000 is a value of that parameter. value=1000 is amount in Wei to send to smart contract. 1 ETH = 10^18 Wei.

in swift app:

//following by EIP-681:
let urlString = "ethereum:0xaaf3A96b8f5E663Fc47bCc19f14e10A3FD9c414B/pay?uint256=100000&value=1000"
UIApplication.shared.open(URL(string: urlString)!, options: [:], completionHandler: nil)

We have done it in PR: Peepeth client PR

Web app:

Pull request, that contains helper functions to work with ethereum links according to eip-681

Smart contract interaction:

Smart contract itself:

pragma solidity ^0.4.23;

contract Shop {
    mapping(uint256 => bool) invoices;
    
    event InvoicePayed(uint256 invoice);

    function pay(uint256 _invoice) public payable {
        require (!invoices[_invoice] && msg.value > 0);
        invoices[_invoice] = true;
        emit InvoicePayed(_invoice);
    }
}

String to encode into QR: "ethereum:0xaaf3A96b8f5E663Fc47bCc19f14e10A3FD9c414B/pay?uint256=100000&value=1000"

Plans (TBD)

During the hackathon, we have covered the whole iOS infrastructure (cross-app transaction signing and sign via QR-code for the calls outside of the phone). Meanwhile, we want to continue working on that idea and adapt it to the whole Ethereum ecosystem, i.e., BUIDL set of the libraries to full reference of FinTech ecosystem::

  • Android (TBD),
  • JS(PR is during development already),
  • IoT libraries + NFC support

Final Notes:

All in all, with all those things that will be implemented we will make ETH interaction as easy as wireless pay.

About

Universal Ethereum payment system

License:MIT License


Languages

Language:Swift 96.9%Language:HTML 2.5%Language:Ruby 0.4%Language:Shell 0.3%