4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Implemented Secp256k CDSA in Java Language

I've implemented and tested Secp256k CDSA in Java. But it seems very slow.

Screenshot from 2018-03-02 14-20-58.png

Implemented functions

I've implemented Secp256k CDSA with Secp256k1Point class. Parameter of Secp256k is below.

  • p : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F
  • a : 0
  • b : 7
  • Gx : 79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798
  • Gy : 483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8

In this class, I've implemented add, multiply functions.

Problem of This Source Code

The problem is that this program is too slow. I felt wired and tried GNU MP library, then it is very fast.
Therefore, I'll make JNI functions for crypto calculation.

Github Status

Testing Crypto code is located below.

https://github.com/alinous-core/codablecash/tree/master/src/test/java/crypt/test

12 upvotes $1.28

Replies (1)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: