Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我想问一下,跳转Dapp的webview url,怎么做到自动授权登陆,打开url,那边可以拿到我们的钱包账号等 #58

Open
lvshtwl opened this issue Feb 28, 2019 · 4 comments

Comments

@lvshtwl
Copy link

lvshtwl commented Feb 28, 2019

No description provided.

@XuNeal
Copy link
Contributor

XuNeal commented Apr 15, 2019

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

@ethluz
Copy link

ethluz commented May 15, 2019

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

@XuNeal
Copy link
Contributor

XuNeal commented Jun 8, 2020

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

@PokimLee
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants