class

Beryl::Crypto::V1::EdwardsCurveSignaturesOverCurve25519::SigningKey

Inherits Reference < Object

A private key: the 32-byte seed of RFC 8032 §5.1.5.

Constructors

generate

Returns a new signing key from Random::Secure.

Source
new(seed : Bytes)

Derives the key from a 32-byte seed (RFC 8032 §5.1.5).

Source

Instance methods

finalize
Source
sign(message : Bytes | String) : Bytes

Returns the 64-byte signature R || S of message (RFC 8032 §5.1.6).

Source
to_slice

Returns a copy of the 32-byte seed.

Source
verification_key
Source