Consensys / jblst

MIT License
8 stars 12 forks source link
bls12-381 blst eth2

jblst

Build Status Latest version of 'jblst' @ Cloudsmith

Java wrapper around Blst BLS native library from Supranational

Dependency

repositories {
  maven { url "https://artifacts.consensys.net/public/maven/maven/" }
}
dependencies {
  dependency "tech.pegasys:jblst:<version>"
}

Minimal sample

// Load native library for current platform
JBlst.loadNativeLibrary();

// Generating new private key
scalar sk = new scalar();
blst.keygen(sk, new byte[] {11}, null);

Supported platforms