scalanlp / breeze

Breeze is/was a numerical processing library for Scala.
https://www.scalanlp.org
Apache License 2.0
3.45k stars 693 forks source link

Using `breeze-viz` with Bouncy Castle causes NPE #796

Closed benthecarman closed 3 years ago

benthecarman commented 3 years ago

When trying to add breeze-viz as a Dep to bitcoin-s it caused Bouncy Castle's SECNamedCurves.getByName("secp256k1") to always return null.

https://github.com/bitcoin-s/bitcoin-s/blob/4d9692f61e51e34a6aca8dfd51502d9d6622a8be/crypto/src/main/scala/org/bitcoins/crypto/CryptoParams.scala#L16

benthecarman commented 3 years ago

Was able to solve by using .exclude("bouncycastle", "bcprov-jdk14") when including the dep