struct

Beryl::Crypto::V1::EdwardsCurveSignaturesOverCurve25519::VerificationKey

Inherits Struct < Value < Object

A public key: the 32-byte encoding of A = [a]B.

Constructors

new(encoded : Bytes)

Raises InvalidPublicKey when encoded is not 32 bytes or does not decode to a point.

Source

Instance methods

==(other : VerificationKey) : Bool
Source
encoded
Source
to_slice
Source
verify(message : Bytes | String, signature : Bytes) : Bool

Returns whether signature is a valid signature of message under this key.

Source