Skip to content

SmartAssets-io/secp256k1-native

Repository files navigation

Build Status License

secp256k1 Native Libraries

This repository creates standard builds of the secp256k1 native library. It packages the built libraries into operating system-specific JARs (with POMs). This allows secp256k1-java (or other interested Java projects) to depend on these JARs using the normal Maven dependency resolution process.

The following dependencies are required (plus Java and Maven):

  • autotools-dev
  • autoconf
  • build-essentials
  • gcc (Linux) or clang (OS X) for building the shared library

Installation

This project is mainly intended to be built by Travis CI, as a Linux operating system is required to build the Linux library, and an OS X operating system is needed to build the OS X library. Nevertheless it is possible to execute the Linux or OS X component of the build locally.

Once the platform dependencies are met:

git clone --recursive https://github.com/rchain/secp256k1-native.git
cd secp256k1-native
mvn clean install

An appropriate Maven profile will automatically be used for Linux or OS X.

Building For Local Maven Repository

  1. ./compile.sh
  2. jar cvf mylib.jar -C ./secp256k1-tmp/.libs .
  3. mvn install:install-file -Dfile=mylib.jar -DgroupId=coop.firefly -DartifactId=secp256k1-native-osx-arm64 -Dversion=0.1-SNAPSHOT -Dpackaging=jar

License

secp256k1 (and this repository for simplicity) is licensed under the Apache 2.0 license.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors