edenchain-docs
0.5


Homepage  GitHub  Telegram Channel  Youtube Channel
  • EdenChain Introduction
  • Architecture
  • Wallet
  • dApp Development
    • Message Encryption/Decryption for Internal communication
    • Urlscheme and Universal Link definition
    • Public Interface API Specification
    • EIAM Server
    • Data Models
    • EDN Faucet
    • E-Explorer API Specification
  • SDK
edenchain-docs
  • »
  • dApp Development »
  • Urlscheme and Universal Link definition
  • View page source

Urlscheme and Universal Link definitionΒΆ

  1. Eden Platform

Urlscheme and Universal Link definition

Created by Jacki Heo, last modified by Jay Lee on Mar 29, 2019

Overview

Define urlscheme to work with the app on the web server. Be sure to leave the urlscheme for the installation as it is. The withdraw or deposit should be processed as a universal link, so that if there is no app, the installation screen is displayed through the browser.

Description

userid_hash changes the user id to a hex string after sha256 () and sends only the first 32 digits.

Here is an example of what python does.


import hashlib
hashlib.sha256('[email protected]'.encode()).hexdigest()[:32]

Here, the logged-in ID on the web and the APP ID may not be matched. In this case, the app compares the id and displays an alarming message to log in with a different account.

If id does not exist, it is displayed without checking. (Example: edenwallet://?action=withdraw)

  • Android

    • Connect to Play: market://details?id=io.edenchain.ewallet

    • Withdraw: https://ewallet.edenchain.io/withdraw/?id=userid_hash

    • Deposit: https://ewallet.edenchain.io/deposit/?id=userid_hash

  • iOS

    • Connect to AppStore: itms-apps://itunes.apple.com/app/id1234567890 (Upload to the app store and update when app id is determined.)

    • Withdraw: https://ewallet.edenchain.io/withdraw/?id=userid_hash

    • Deposit: https://ewallet.edenchain.io/deposit/?id=userid_hash


In the E-garden, play and app store connections remain the same on the initial installation screen.

Thereafter, the withdraw and deposit changes as defined above.


DApp modifies the url in the call to withdraw and deposit as above.


In case of E-Wallet App, it is modified to process only each withdraws or deposits.





Document generated by Confluence on Mar 29, 2019 16:19

Atlassian

Next Previous

© Copyright Edenchain 2019.

This work is licensed under a Creative Commons Attribution 4.0 International License Creative Commons License

Built with Sphinx using a theme provided by Read the Docs.