Sign and verify library for ED25519 signature algorithm.
ED25519 Properties
- Private Key: 32 Byte
- Public Key: 32 Byte
- Signature: 64 Byte
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);
Inspired by: