Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Java CI

on:
push:
branches: [ gluon ]
pull_request:
branches: [ gluon ]

jobs:
build:

runs-on: ubuntu-latest

env:
JAVA_VERSION: 17

steps:
- uses: actions/checkout@v2
- name: 'Download OpenJDK'
run: |
wget --no-verbose \
--directory-prefix ${{ runner.temp }} \
https://download.java.net/java/GA/jdk17/0d483333a00540d886896bac774ff48b/35/GPL/openjdk-17_linux-x64_bin.tar.gz
- name: Setup java
uses: actions/setup-java@v2
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: jdkfile
jdkFile: ${{ runner.temp }}/openjdk-${{ env.JAVA_VERSION }}_linux-x64_bin.tar.gz
- name: Build with Maven
run: mvn clean install
4 changes: 0 additions & 4 deletions build.gradle

This file was deleted.

12 changes: 12 additions & 0 deletions common/src/main/java/org/whispersystems/curve25519/Curve25519.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ public byte[] verifyVrfSignature(byte[] publicKey, byte[] message, byte[] signat
return provider.verifyVrfSignature(publicKey, message, signature);
}

/**
* Create a public key from the bytes used to generate a private key
*
* @param privateKey the bytes used for a private key
*
* @return the bytes for the public key, not containing a type.
*/
public byte[] createPublicKeyFromPrivateKey(byte[] privateKey) {
byte[] publicKey = provider.generatePublicKey(privateKey);
return publicKey;
}

private static Curve25519Provider constructNativeProvider(SecureRandomProvider random) throws NoSuchProviderException {
return constructClass("NativeCurve25519Provider", random);
}
Expand Down
6 changes: 0 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

164 changes: 0 additions & 164 deletions gradlew

This file was deleted.

90 changes: 0 additions & 90 deletions gradlew.bat

This file was deleted.

Loading