GithubHelp home page GithubHelp logo

jblst's Introduction

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

  • x86-64
    • Windows
    • Linux
    • MacOS
  • aarch64
    • Linux
    • MacOS

jblst's People

Contributors

ajsutton avatar cemozerr avatar delaguardo avatar jtraglia avatar nashatyrev avatar plamarque avatar stefanbratanov avatar zilm13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jblst's Issues

Update to Blst v0.3.8

From Supranational

We recently added a couple new functions to blst that were requested by the community. One feature is EIP-2333 key derivation, and the other is a legacy version of KeyGen from a previous version of the BLS spec. The legacy KeyGen feature was added because the Chia protocol shipped their blockchain using a previous version of the BLS spec. They requested we add this as they are hoping to be able to leverage this library: https://github.com/ConsenSys/web3signer. This library uses jblst under the hood I believe so it would be appreciated if you could update jblst to the most recent release of blst (v0.3.8) at your convenience.

Use portable build and remove optimized builds

As of v0.3.11, blst's portable build supports CPU runtime detection and will automatically use optimized code (ADX, SHA extensions, and ARM crypto extensions) if supported. For simplicity, I think we should only provide the portable build.

Error in loading JBlst (Android)

UsingJBlst.loadNativeLibrary(); shows cannot resolve symbol Jblst.

Trying to use jblst in my Android app. I took the dependency from & added it to app level build.gradlel file.

Without loading the native library, following error comes up -

 java.lang.UnsatisfiedLinkError: No implementation found for long tech.pegasys.teku.bls.impl.blst.swig.blstJNI.new_scalar() (tried Java_tech_pegasys_teku_bls_impl_blst_swig_blstJNI_new_1scalar and Java_tech_pegasys_teku_bls_impl_blst_swig_blstJNI_new_1scalar__)
at tech.pegasys.teku.bls.impl.blst.swig.blstJNI.new_scalar(Native Method)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.