Skip to content

CalculusEnjoyer/ECDSA-java-implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java implementation of the Elliptic Curve Digital Signature Algorithm

This is a mini ECDSA library that provides opportunity for creating signatures and validating String messages. In Curve class you can find constant of Secp256k1 curve (btw it is also used in Bitcoin network as well) for quick testing. In addition, it was covered by unit tests.

Main methods overview

Signature.signMessage(PrivateKey k, String m, Curve c) ⟹ Signature

Signs the message and returns the Signature

Signature.verifyMessage(String m, Signature s, PublicKey k, Curve c) ⟹ boolean

Returns true if the message is verified

An example of signing a message is shown in Main.java.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages