withCurve

fun withCurve(curve: ECCurve, encodeCurve: Boolean = true, encodePublicKey: Boolean = (this.publicKeyBytes != null)): CryptoPrivateKey.EC.WithPublicKey(source)

Creates a new CryptoPrivateKey.EC.WithPublicKey based on the passed curve.