-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ECDSA implementation not found in 4.1.0-android #828
Comments
I am getting the same error, too. Is there any solution other than downgrading? |
I have the same problem. any plan to fix it? |
as i know the problem is that Spongy Castle changed to Bouncy Castle in version 4.1.0-android and android have problem with bouncy Castle. |
Please take a look at #769, this contains some information regarding the crypto changes. |
@snazha-blkio Thanks for the information. |
@WarSame there is a test for this functionality, please refer to: https://github.com/web3j/web3j/blob/release/4.1-android/core/src/test/java/org/web3j/crypto/WalletUtilsTest.java#L70 Are you able to run similar code to this in your app? |
Hey guys, the library was tested in this sample app: https://github.com/serso/web3a. |
@serso yes, by adding bouncy castle provider in application, problem solved. |
@serso @snazha-blkio Sorry for the delay. Thank you guys, that works! Adding the BC provider in the application onCreate resolved the issue. |
Great! I assume this issue can be closed then. |
I had the same problem and when I added the bouncy castle, the app crashed. Is there any way to fix this? |
@Ayesha742 providing a stack trace would be beneficial |
The stack trace is clearly different. It doesn't even seem to be related to Bouncy Castle or web3j. |
Hi, is there anything to fix this? |
@Ayesha742 what's the memory heap size you have on your phone/emulator? OOM exception might be caused by some other component in your app that eats too much RAM. |
@serso There is no problem with RAM. It is occurring on my device as well with 6gb RAM and no other apps running. The problem is in the code. |
@kagile @Ayesha742 have you tried running https://github.com/serso/web3a? |
I created a new android project and used bouncy castle, now it is working |
要怎么解决啊......................... |
I am getting an exception on Android when trying to generate a new light wallet using 4.1.0-android. This is code that previously used to work:
this.fileName = WalletUtils.generateLightNewWalletFile(longPassword, getWalletDir(context));
longPassword is a String, getWalletDir returns a directory to store all of the wallet files in.
Googling seems to suggest that it may be due to Bouncy Castle implementing stunted versions of some algorithms for Android, but again, this previously worked on Android 3.4 and I believe web3j uses Spongy Castle to get around BC's problems.
I noticed @sanignucio mentioned this problem in the sample project which I cannot build the project to reproduce.
The text was updated successfully, but these errors were encountered: