-
Notifications
You must be signed in to change notification settings - Fork 15
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
Crashing during JsonLD signing on Android #19
Comments
Hello @kenneth-leong-gt thanks for your feedback. Could you please check issue danubetech/key-formats-java#11 on the "key-formats-java" library to see if that solves the problem? If not, or if that other issue discussion isn't clear, please reply back here and we'll take another look to help! |
ok seems to be working using the tink povider now. Thank you very much. But one comment on the api for
It states that the param needed is the byte array for the private key, but actually it requires the private key byte array concat-ed with the public key byte array as internally its checking for 64 bytes for the byte array length. As shown in this check below.
So kinda confusing imo. |
I agree this is confusing, however we did this to mirror what libsodium has been doing, where in several places the public and private keys are used together. Not sure what's the reason for this. See e.g. here:
I suppose the Tink approach is better, where the "private key" is really only the private key. |
I just added two commits which hopefully document the issues that were raised here a bit: danubetech/key-formats-java@433dd83 |
thanks for the updates. btw are there any plans for something like |
No sorry, at the moment we don't have plans to implement this in any other lanaguge... |
Can we close this issue? |
yes, thanks |
Is this library able to be used in an Android device? I am getting exception for the instantiation of
com.danubetech.keyformats.crypto.provider.impl.NaClSodiumEd25519Provider
when running in Android.Full stack trace below
The text was updated successfully, but these errors were encountered: