96 Commits

Author SHA1 Message Date
Fabrice Drouin
4aa4dc2a50
Set version to 0.5.3-SNASPHOT (#25)
* Set version to 0.5.3-SNAPSHOT

* Use Android API level 27
2021-08-10 09:48:31 +02:00
Fabrice Drouin
7bc3aafd08
Set version to 0.5.2 (#22) v0.5.2 2021-06-28 11:30:05 +02:00
Fabrice Drouin
9c1afc715a
Fix Android build (#23)
* Upgrade Android NDK

* Use Android emulator 30.7.3 on macos
2021-06-28 10:31:57 +02:00
Fabrice Drouin
b544b24cc3
Fix memory leak in pubkeyCreate() (#20) 2021-06-22 16:16:08 +02:00
Fabrice Drouin
2b0254affb
Update secp256k1 sources (#19)
We're now at efad350, the same commit that bitcoin core is using
2021-06-17 11:42:50 +02:00
Fabrice Drouin
b23733d5d4
Use kotlin 1.4.32, set version to 0.5.2-SNAPSHOT, remove bintray settings. (#18) 2021-04-08 10:12:36 +02:00
Fabrice Drouin
0751d7c103
Update README.md 2021-03-26 14:35:15 +01:00
Fabrice Drouin
eadd428895
Set version to 0.5.1 (#17) v0.5.1 2021-03-22 21:44:01 +01:00
Fabrice Drouin
ad1979c11e
Update libsecp256k1 code (#16)
There are no external dependencies now
2021-03-19 19:07:05 +01:00
Romain Boisselle
a609b092be
Fix CI (#15) 2021-03-12 10:35:48 +01:00
Romain Boisselle
f493edfdfb
New publication configuration (#14)
* add Dokka + align POM metadatas with sonatype requirements

* update snapshot CI

* update JNI publication

* update CI scripts

* remove maven-metadata-local.xml

* add snapshot publication with maven-publish plugin
2021-03-11 17:53:50 +01:00
Salomon BRYS
7d22d835a5
Kotlin 1.4.31 (#13)
* Kotlin 1.4.31

* Updated CI add-path disabled command to new more secure environment file.

* Properly setting up Android in CI
v0.5.0
2021-03-08 16:50:25 +01:00
sstone
bb25eb21b7
Set version to 0.4.1 v0.4.1 2020-09-16 10:40:37 +02:00
sstone
6a67dbe9f6
signatureNormalize: relax check on signature size
Checking that the sig size is >= 64 is enough, this is just a quick check before the actual library method is called.
v0.4.0
2020-09-10 20:21:58 +02:00
Salomon BRYS
7272a55b8a
Changed deployment artifact-id to secp256k1-kmp (#12)
Co-authored-by: Salomon BRYS <salomon@kodein.net>
2020-09-09 11:00:04 +02:00
Salomon BRYS
d702925e40
Kotlin 1.4.0 (#11)
Co-authored-by: Salomon BRYS <salomon@kodein.net>
v0.3.0
2020-08-18 10:52:42 +02:00
sstone
7a33c81c01
Use Kotlin 1.4 v0.3.0-1.4 2020-08-18 09:51:20 +02:00
Romain Boisselle
2615187b87
Kotlin 1.4.0-rc (#10)
* Move to kotlin 1.4.0-rc

* Removing broken WSL bash

see https://github.com/actions/virtual-environments/issues/50

Co-authored-by: Salomon BRYS <salomon@kodein.net>
v0.3.0-1.4-rc
2020-08-02 20:08:02 +02:00
Salomon BRYS
dbf8301f34
Android loading may fallback to standard JVM (#9)
* Android loading may fallback to standard JVM

* Java code must target JVM 1.8 in order to be compatible Android.

Co-authored-by: Salomon BRYS <salomon@kodein.net>
v0.3.0-1.4-M3
2020-07-16 22:21:30 +02:00
Fabrice Drouin
0cc4c251f9
Fixup for #6 (native signature format detection) (#8)
* Fixup for #6

Behaviour was changed in the JNI wapper but not in Kotlin native code.

* Set version to 0.2.1-1.4-M3
v0.2.1-1.4-M3
2020-07-09 20:16:39 +02:00
Salomon BRYS
eeac972785
Update README.md (#7)
The package in bintray has lost the `-kmp`.
The badge needs to be updated to avoid image not found.
2020-07-09 17:54:22 +02:00
Fabrice Drouin
5af1807f38
Fix signature format detection (#6)
64 bytes means compact, less is invalid, other try DER and let the library handle the actual check.
v0.2.0-1.4-M3
2020-07-09 15:59:07 +02:00
Salomon BRYS
6c850eb2c4
Native jni build (#5)
* Each native library is in its own jar. Got rid of cross compilation. The project is `secp256k1` and not `secp256k1-kmp`.

* Updated CI to use all 3 OS VMs

Co-authored-by: Salomon BRYS <salomon@kodein.net>
2020-07-09 14:54:34 +02:00
Salomon BRYS
c5dbc42496
Kotlin 1.4-M3, fixed CI glitches & fixed build on Mac (#4)
* Kotlin 1.4-M3, fixed CI glitches & fixed build on Mac

* Fixes https://github.com/eskatos/gradle-command-action/issues/24

* Explicit mode requirements in Android tests

Co-authored-by: Salomon BRYS <salomon@kodein.net>
2020-07-06 21:45:17 +02:00
Salomon BRYS
316e585e4c
Rational ci (#3)
* Only test when pushing on master OR when there's a PR

* Added the bintray badge as well as the repository informations to README.

* Do not re-launch CI when updating documentation, auto-publish when pushing a snapshot.

* Update README.md

Co-authored-by: Salomon BRYS <salomon@kodein.net>
2020-07-06 11:37:10 +02:00
Fabrice Drouin
e2e250fb16 Update README.md 2020-07-04 13:39:26 +02:00
Salomon BRYS
fa425731a1
GitHub actions (#2)
* Updated readme, enabled automatc testing

* Snapshot support

* Release CI support

Co-authored-by: Salomon BRYS <salomon@kodein.net>
2020-07-03 19:12:38 +02:00
sstone
08d1692932 Add compact2der() method 2020-07-02 21:39:33 +02:00
Salomon BRYS
244673b04c Reset version number 2020-07-02 18:07:28 +02:00
Fabrice Drouin
3ee2635d93
Upgrade JNI interface (#1)
* Upgrade JNI interface

* Input signatures can be DER or compact format, output signatures are always in compact format

* Input public keys can be compressed or uncompressed, output public keys are always uncompressed

* Name and parameters match libsecp256k1's

* JNI implementation is now straightforward

  No more ByteBuffers
  Exceptions are thrown in case of failures

* Update src/nativeMain/kotlin/fr/acinq/secp256k1/Secp256k1Native.kt

* Add public key compression method

Co-authored-by: Salomon BRYS <salomon.brys@gmail.com>
2020-07-02 17:52:21 +02:00
Salomon BRYS
17dd83e476 Tests in their own module so that they can run on Android with the connectedCheck task 2020-07-02 12:19:29 +02:00
Salomon BRYS
ffe4cc41dc Maven publications 2020-07-02 11:39:42 +02:00
Salomon BRYS
3b3d67a4fe JNI built in JNI 2020-07-01 18:26:24 +02:00
Salomon BRYS
6e4763e55b Using javac to generate header 2020-07-01 13:53:26 +02:00
Salomon BRYS
720637ec24 JNI Implementation in their own package 2020-07-01 12:56:48 +02:00
Salomon BRYS
1d9d57ca0a Android & JVM loader in their own modules 2020-07-01 12:15:04 +02:00
Salomon BRYS
9e1fc5d5ff Gradle Wrapper 2020-06-29 18:19:32 +02:00
Salomon BRYS
1787dedb4e Android fix 2020-06-29 18:05:05 +02:00
Salomon BRYS
4bdc836556 Explicit Signature & PubKey formats + bug fixes 2020-06-29 17:10:58 +02:00
Salomon BRYS
b67cafed38 Doc 2020-06-29 13:06:59 +02:00
Salomon BRYS
3c317da9f5 Linux build in macos 2020-06-29 13:02:45 +02:00
Salomon BRYS
7e79a17a7f Maven publish 2020-06-29 12:28:00 +02:00
Salomon BRYS
548fb27c33 Compat with linux host 2020-06-29 11:41:34 +02:00
Salomon BRYS
ff37b86ff3 Android implementation 2020-06-26 20:50:32 +02:00
Salomon BRYS
08b6d16836 Native & iOS implementation 2020-06-26 17:10:48 +02:00
Salomon BRYS
54abe2a397 JVM implementation 2020-06-26 13:48:50 +02:00