2021 05 02 m1 secp256k1 natives (#3014)

* Add protoc exception for apples new chip arch. This requires protoc to be built manually as they do not natively ship m1 support yet

* Add osx_arm64 secp256k1 native binaries
This commit is contained in:
Chris Stewart 2021-05-03 07:41:41 -05:00 committed by GitHub
parent 8ec93c6632
commit 1339abe410
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 48 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1 @@
libsecp256k1.0.dylib

View file

@ -0,0 +1 @@
../libsecp256k1.la

View file

@ -0,0 +1,41 @@
# libsecp256k1.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.6
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libsecp256k1.0.dylib'
# Names of this library.
library_names='libsecp256k1.0.dylib libsecp256k1.dylib'
# The name of the static archive.
old_library='libsecp256k1.a'
# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=' '
# Libraries that this one depends upon.
dependency_libs=''
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for libsecp256k1.
current=0
age=0
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/usr/local/lib'

Binary file not shown.

View file

@ -0,0 +1 @@
../libsecp256k1_jni.la

View file

@ -1,6 +1,8 @@
package org.bitcoin;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import java.math.BigInteger;
@ -10,6 +12,8 @@ import static org.bitcoin.NativeSecp256k1Util.assertEquals;
/**
* This class holds test cases defined for testing this library.
*/
@RunWith(BlockJUnit4ClassRunner.class)
public class NativeSecp256k1Test {
//TODO improve comments/add more tests