Giter Club home page Giter Club logo

ecdsa-java's People

Contributors

cdottori-stark avatar daltonfm-stark avatar dependabot[bot] avatar leandro-stark avatar lucasste avatar massaru-stark avatar matheuscferraz avatar rcmstark avatar taroninak avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ecdsa-java's Issues

Add LICENSE for Java, PHP, Ruby, and Node

Considering using these libraries but I don't see a LICNESE file in each repo. Could you add a LICENSE for the Java, PHP, Ruby, and Node libs and include in a new release?

It took 300ms-400ms to sign 100 times

@test
public void testSign() {
PrivateKey privateKey = new PrivateKey();
String message = "This is a text message";
long a = System.nanoTime();
for (int i = 0; i < 100; i++) {
Ecdsa.sign(message, privateKey);
}
long b = System.nanoTime();
System.out.println((b - a) / 1000000);
}

Private Key string representation

I just tried to get string representation of the Secret key and have got unexpected result:
Both methods:
ByteString bStr = privateKey.toByteString();
String res = BinaryAscii.hexFromBinary(bStr);

and:
String res = privateKey.secret.toString(16);

return some thing like this:

4b2e90b5a1044c47853924d138c033bf0ff8c73ec0bce4bef513c75ae5e57ddb0c
which differs in length with expected size (32 bytes) by one byte.

Explanations of correct use are highly appreciated.
Kind regards.

Wrong group id

In Maven Central the group id is "com.starkbank.ellipticcurve" not "com.starkbank" as you specify

Performance analysis of secp521r1

Hi Team

Thanks for sharing your work in public. I took the code and added specification for NIST secp521r1 curve in the code and ,measured the performance for (ECDSA) Signature Verification. I got around 400 Signature verification.

Also when I saw your performance for secp256k1 curve

Library | sign | verify

java.security | 0.9ms | 2.4ms
starkbank-ecdsa | 4.3ms | 9.9ms

If I am correct. The java.security is performing 4 times better than your version?
Any thoughts

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.