blake3-jni


License

License

GroupId

GroupId

org.alephium
ArtifactId

ArtifactId

blake3-jni_2.13
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

blake3-jni
blake3-jni
Project URL

Project URL

https://github.com/alephium/blake3-jni
Project Organization

Project Organization

org.alephium
Source Code Management

Source Code Management

https://github.com/alephium/blake3-jni

Download blake3-jni_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/org.alephium/blake3-jni_2.13/ -->
<dependency>
    <groupId>org.alephium</groupId>
    <artifactId>blake3-jni_2.13</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.alephium/blake3-jni_2.13/
implementation 'org.alephium:blake3-jni_2.13:0.3.0'
// https://jarcasting.com/artifacts/org.alephium/blake3-jni_2.13/
implementation ("org.alephium:blake3-jni_2.13:0.3.0")
'org.alephium:blake3-jni_2.13:jar:0.3.0'
<dependency org="org.alephium" name="blake3-jni_2.13" rev="0.3.0">
  <artifact name="blake3-jni_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.alephium', module='blake3-jni_2.13', version='0.3.0')
)
libraryDependencies += "org.alephium" % "blake3-jni_2.13" % "0.3.0"
[org.alephium/blake3-jni_2.13 "0.3.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.3

test (3)

Group / Artifact Type Version
org.scalatest : scalatest_2.13 jar 3.2.0
io.circe : circe-parser_2.13 jar 0.13.0
io.circe : circe-generic_2.13 jar 0.13.0

Project Modules

There are no modules declared in this project.

Install

run ./make

The following steps are executed:

  1. BLAKE3 repository is used as a git submodule
git submodule init
git submodule update
  1. Generate C header file
javac src/main/java/org/alephium/blake3jni/Blake3Jni.java -h src/main/c
  1. Build the shared library:
  • Linux (libblake3.so):
gcc -z noexecstack -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -I${JAVA_HOME}/include/darwin -IBLAKE3/c -fPIC -shared -o lib/libblake3.so src/main/c/org_alephium_blake3jni_Blake3Jni.c BLAKE3/c/blake3.c BLAKE3/c/blake3_dispatch.c BLAKE3/c/blake3_portable.c BLAKE3/c/blake3_sse41_x86-64_unix.S BLAKE3/c/blake3_avx2_x86-64_unix.S BLAKE3/c/blake3_avx512_x86-64_unix.S

Tests

Run the tests with sbt:

sbt test
org.alephium

Alephium

Make programmable money scalable and secure

Versions

Version
0.3.0
0.2.0