class NaCl::Signatures::Ed25519::VerifyKey

Included Modules

Defined in:

nacl/signatures/ed25519/verify_key.cr

Constructors

Instance Method Summary

Instance methods inherited from module NaCl::Serializable

inspect inspect, to_s to_s

Instance methods inherited from module NaCl::KeyComparator

<=>(other) <=>, ==(other) ==, compare32(other) compare32

Constructor Detail

def self.new(key : Bytes) #

Create a new VerifyKey object from a public key.


[View source]

Instance Method Detail

def bytes : Slice(UInt8) #

[View source]
def signature_bytes #

[View source]
def verify(signature, message) #

Verify a signature for a given message

Raises if the signature is invalid.


[View source]