class

Message::Verifier

Inherits Reference < Object

Constructors

new(secret : String, digest : Symbol = :sha256, fallback_digest : Symbol | Nil = :sha1)
Source

Instance methods

generate(value : String | Bytes) : String
Source
valid_message?(data : String, digest : String) : Bool
Source
valid_message_with_fallback?(data : String, digest : String) : Bool

Check if message is valid with fallback digest (for migration)

Source
verified(signed_message : String) : String | Nil
Source
verify(signed_message : String) : String
Source
verify_raw(signed_message : String) : Bytes
Source

Nested types