Implemented Secp256k CDSA in Java Language

in #codablecash7 years ago (edited)

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

Sort:  

You got a 1.30% upvote from @buildawhale courtesy of @iizuka!
If you believe this post is spam or abuse, please report it to our Discord #abuse channel.

If you want to support our Curation Digest or our Spam & Abuse prevention efforts, please vote @themarkymark as witness.

Coin Marketplace

STEEM 0.30
TRX 0.26
JST 0.039
BTC 94799.73
ETH 3388.08
USDT 1.00
SBD 3.30