struct

Beryl::Crypto::V1::DiffieHellmanOverCurve25519::PublicKey

Inherits Struct < Value < Object

A public key: 32 bytes, the u-coordinate of a point. Every 32-byte value is accepted, as RFC 7748 ยง5 requires; a point of small order shows up as an all-zero shared secret, which shared_secret refuses.

Constructors

new(encoded : Bytes)
Source

Instance methods

==(other : PublicKey) : Bool
Source
bytes
Source
to_slice
Source