Skip to content

Commit aa5a1eb

Browse files
committed
Use bitcoin-kmp 0.30.0
1 parent fb17e53 commit aa5a1eb

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

pom.xml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
</snapshotRepository>
1616
</distributionManagement>
1717

18+
<repositories>
19+
<repository>
20+
<id>central-snapshots</id>
21+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
22+
</repository>
23+
</repositories>
24+
1825
<properties>
1926
<project.build.outputTimestamp>2020-01-01T00:00:00Z</project.build.outputTimestamp>
2027
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -146,12 +153,12 @@
146153
<dependency>
147154
<groupId>fr.acinq.bitcoin</groupId>
148155
<artifactId>bitcoin-kmp-jvm</artifactId>
149-
<version>0.29.0</version>
156+
<version>0.30.0-SNAPSHOT</version>
150157
</dependency>
151158
<dependency>
152159
<groupId>fr.acinq.secp256k1</groupId>
153160
<artifactId>secp256k1-kmp-jni-jvm</artifactId>
154-
<version>0.22.0</version>
161+
<version>0.23.0-SNAPSHOT</version>
155162
</dependency>
156163
<dependency>
157164
<groupId>org.scodec</groupId>

src/test/scala/fr/acinq/bitcoin/scalacompat/Secp256k1Spec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import fr.acinq.secp256k1.Secp256k1
55
import org.scalatest.FunSuite
66
import scodec.bits.ByteVector
77

8-
import scala.util.{Random, Try}
8+
import scala.util.Random
99

1010
/**
1111
* run this test with -Djava.library.path=$PATH_LIBSECP256K1_DIR where $PATH_LIBSECP256K1_DIR is a directory that
@@ -33,7 +33,7 @@ class Secp256k1Spec extends FunSuite {
3333
Random.nextBytes(priv)
3434
Random.nextBytes(data)
3535
val sig1: ByteVector = Crypto.sign(ByteVector.view(data), PrivateKey(ByteVector.view(priv)))
36-
val sig2: ByteVector = ByteVector.view(nativeSecp256k1.get.sign(data, priv))
36+
val sig2: ByteVector = ByteVector.view(nativeSecp256k1.get.sign(data, priv, null))
3737
assert(sig1 == sig2)
3838
}
3939
}

0 commit comments

Comments
 (0)