You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently inside the crypto_api package we find the following piece of code:
fun <T> loadClass(name:String): T=try {
@Suppress("UNCHECKED_CAST")
Class.forName("org.kethereum.crypto.impl.$name").newInstance() asT
} catch (e:ClassNotFoundException) {
throwRuntimeException("There is not implementation found for $name - you need to either depend on crypto_impl_spongycastle or crypto_impl_bouncycastle")
}
While this works for JVM based project, I am not sure it will work on multiplatform projects too.
I think, but I might be wrong, that we could replace the loadClass method with the actual/expected mechanism allowing this library to be used inside multiplatform projects too.
The text was updated successfully, but these errors were encountered:
Currently inside the
crypto_api
package we find the following piece of code:While this works for JVM based project, I am not sure it will work on multiplatform projects too.
I think, but I might be wrong, that we could replace the
loadClass
method with theactual/expected
mechanism allowing this library to be used inside multiplatform projects too.The text was updated successfully, but these errors were encountered: