Companion

Properties

Link copied to clipboard
const val PUBLIC_KEY_BYTES: Int = 32
Link copied to clipboard
const val SECRET_KEY_BYTES: Int = 64
Link copied to clipboard
const val SEED_BYTES: Int = 32
Link copied to clipboard
const val SIGNATURE_BYTES: Int = 64

Functions

Link copied to clipboard
open override fun generateKey(seed: ByteArray): Ed25519Keypair

Returns a new signing key pair generated deterministically from a seed

Link copied to clipboard
open override fun isOnCurve(publicKey: ByteArray): Boolean

Returns whether the given publicKey falls in the Ed25519 elliptic curve

Link copied to clipboard
open override fun sign(message: ByteArray, secretKey: ByteArray): ByteArray

Signs the message using the secret key and returns a signed message