Forum chevron_right Corda 5 – CorDapp Development chevron_right Unsupported curve (secp256k1) when trying to get DP2 sample running

  • Creator
    Topic
  • #9671
    QA Bot
    Keymaster

    Hi everybody,

    I’m working through the instructions on this page and hitting a problem when trying to perform the deployCorda task.

    Specifically, the preconfigured test (MyFirstFlowTest.kt) fails on line 27:

    val aliceVN = simulator.createVirtualNode(aliceHoldingID, MyFirstFlow::class.java)

    with:

    java.security.InvalidAlgorithmParameterException: Curve not supported: secp256k1 (1.3.132.0.10) at jdk.crypto.ec/sun.security.ec.ECKeyPairGenerator.ensureCurveIsSupported(ECKeyPairGenerator.java:136) at jdk.crypto.ec/sun.security.ec.ECKeyPairGenerator.initialize(ECKeyPairGenerator.java:114) at java.base/java.security.KeyPairGenerator$Delegate.initialize(KeyPairGenerator.java:698) at net.corda.simulator.runtime.signing.BaseSimKeyStore.(BaseSimKeyStore.kt:15) at net.corda.simulator.runtime.SimulatedVirtualNodeBase.(SimulatedVirtualNodeBase.kt:22) at net.corda.simulator.runtime.SimulatorDelegateBase.createVirtualNode(SimulatorDelegateBase.kt:46) at net.corda.simulator.Simulator.createVirtualNode(Simulator.kt:48) at com.r3.developers.csdetemplate.MyFirstFlowTest.test that MyFirstFLow returns correct message(MyFirstFlowTest.kt:27) ...

    Now I’m pretty sure this is because my JDK doesn’t support the curve.

    Except… the instructions said to use Azul Zulu 11… and that’s what I’m doing!

    So… is there a specific (higher?) version I should be using? If so, what? Is the project somehow not picking up this setting? If so, what’s the best way to verify exactly which JDK is being used?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #9672
    QA Bot
    Keymaster

    SOLVED!

    Make sure your IntelliJ global gradle setting is set to use the project’s sdk settings rather than picking up whatever the machine’s globally set JDK is

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.

Subscribe to our newsletter to stay up to date on the latest developer news, tools, and articles.