GithubHelp home page GithubHelp logo

我想问一下,跳转Dapp的webview url,怎么做到自动授权登陆,打开url,那边可以拿到我们的钱包账号等 about token-core-android HOT 4 OPEN

lvshtwl avatar lvshtwl commented on July 30, 2024
我想问一下,跳转Dapp的webview url,怎么做到自动授权登陆,打开url,那边可以拿到我们的钱包账号等

from token-core-android.

Comments (4)

XuNeal avatar XuNeal commented on July 30, 2024

一般的dApp页面本身都会使用https://github.com/ethereum/web3.js这个脚本,如果是Android App上可以通过类似jsbridge技术。注入拦截web3接口本身的方法,比如常见的getAccounts()接口,返回你App内已有的账户即可,签名接口类似。如此就可以实现dApp本身使用App内的钱包和签名技术

from token-core-android.

ethluz avatar ethluz commented on July 30, 2024

react native 中如何获取创建账户的方法,以及获取私钥等

from token-core-android.

XuNeal avatar XuNeal commented on July 30, 2024

RN 可以通过RN 的plugin机制,把https://github.com/consenlabs/token-core-android/blob/master/app/src/main/java/org/consenlabs/tokencore/wallet/WalletManager.java 包装为一些RN可以调用的方法,即可使用

from token-core-android.

PokimLee avatar PokimLee commented on July 30, 2024

如果是 Object-C 要怎么实现呢 @XuNeal

一般的dApp页面本身都会使用https://github.com/ethereum/web3.js这个脚本,如果是Android App上可以通过类似jsbridge技术。注入拦截web3接口本身的方法,比如常见的getAccounts()接口,返回你App内已有的账户即可,签名接口类似。如此就可以实现dApp本身使用App内的钱包和签名技术

from token-core-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.