dwyaneq / ethwallet Goto Github PK
View Code? Open in Web Editor NEWA ethereum wallet like imToken
A ethereum wallet like imToken
非常感谢你的开源的钱包UI ,我在钱包中加入了更丰富的功能, 可参考:https://github.com/xilibi2003/Upchain-wallet
android8.0以上 bitcoinj依赖库 提示INSTALL_FAILED_NO_MATCHING_ABIS,8.0以下运行正常
有什么解决方法?
很好的作品
private boolean verifyPassword(String oldPwd, String newPwd, String newPwdAgain) { if (!TextUtils.equals(Md5Utils.md5(oldPwd), walletPwd)) { ToastUtils.showToast(R.string.modify_password_alert4); return false; } else if (TextUtils.equals(newPwd, newPwdAgain)) { // 判断有误 ToastUtils.showToast(R.string.modify_password_alert5); return false; } return true; }
// 内存溢出crash
WalletUtils.generateWalletFile(newPassword, keypair, destinationDirectory, true);
07-20 00:51:55.733 5416-5437/com.gongchuang.ethtoken W/System.err: io.reactivex.exceptions.UndeliverableException: java.lang.OutOfMemoryError: Failed to allocate a 1036 byte allocation with 4194304 free bytes and 29MB until OOM; failed due to fragmentation (required continguous free 16384 bytes for a new buffer where largest contiguous free 8192 bytes)
at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:349)
at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:69)
at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 1036 byte allocation with 4194304 free bytes and 29MB until OOM; failed due to fragmentation (required continguous free 16384 bytes for a new buffer where largest contiguous free 8192 bytes)
at org.spongycastle.util.Arrays.clone(Arrays.java:602)
at org.spongycastle.crypto.generators.SCrypt.SMix(SCrypt.java:126)
at org.spongycastle.crypto.generators.SCrypt.MFcrypt(SCrypt.java:87)
07-20 00:51:55.734 5416-5437/com.gongchuang.ethtoken W/System.err: at org.spongycastle.crypto.generators.SCrypt.generate(SCrypt.java:66)
at org.web3j.crypto.Wallet.generateDerivedScryptKey(Wallet.java:136)
at org.web3j.crypto.Wallet.create(Wallet.java:74)
at org.web3j.crypto.Wallet.createStandard(Wallet.java:93)
at org.web3j.crypto.WalletUtils.generateWalletFile(WalletUtils.java:64)
at com.gongchuang.ethtoken.utils.ETHWalletUtils.modifyPassword(ETHWalletUtils.java:261)
at com.gongchuang.ethtoken.ui.presenter.WalletDetailPresenter$2.subscribe(WalletDetailPresenter.java:40)
at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(ObservableCreate.java:40)
at io.reactivex.Observable.subscribe(Observable.java:10981)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:452)
at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
请教一下怎么将私钥转换为助记词,有没有简洁的方法,比如传入一个私钥,返回助记词
现在代码不完善,有问题:以私钥方式导入的钱包,导出助记词时为空。
我想根据你这个钱包实现一个转账功能的钱包,目前不知道该如何着手,你会在后续加入吗。
如题,谢谢!
试过了下面两种方法都不能安装:
1.File ---> Settings ---> Build,Execution,Deployment ---> Instant Run
把Enable Instant Run to选项去掉
2.splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a','x86_64'
universalApk true
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.