Skip to content

kabl/ed25519

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Sign and verify library for ED25519 signature algorithm.

ED25519 Properties

  • Private Key: 32 Byte
  • Public Key: 32 Byte
  • Signature: 64 Byte

How to use

This library is built for developers which want simply generate signatures and validate signatures.

/**
 * Verifies a signed message.
 *
 * @param publicKey 32 byte array public key.
 * @param signature The signature.
 * @param message The original message which was signed.
 * @return true if the signature matches.
 */
public boolean verify(byte[] publicKey, byte[] signature, byte[] message);

/**
 * Signs data.
 *
 * @param privateKey 32 byte array with the private key. Can be random 32 bytes.
 * @param message Message to sign.
 * @return The signed message.
 */
public byte[] sign(byte[] privateKey, byte[] message);

References

Inspired by:

About

Digital Signature with the ec25519 curve

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages