Ed25519Math

scalus.crypto.ed25519.Ed25519Math
object Ed25519Math

Platform-independent interface for Ed25519 mathematical operations.

These operations are needed for BIP32-Ed25519 key derivation which requires scalar multiplication with the base point for non-hardened derivation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def scalarMultiplyBase(scalar: Array[Byte]): Array[Byte]

Multiply the Ed25519 base point by a scalar to derive the public key.

Multiply the Ed25519 base point by a scalar to derive the public key.

Given a 32-byte scalar k (little-endian), compute A = k * G where G is the Ed25519 base point.

Value parameters

scalar

32-byte scalar in little-endian format

Attributes

Returns

32-byte compressed public key point