class

Arcana::Signing::Nonces

Inherits Reference < Object

Nonces of signed requests seen within the window, so none is accepted twice. Kept twice the window, which covers a request timed up to a window either side of the bus's clock.

Constructors

new(window : Time::Span = WINDOW)
Source

Instance methods

fresh?(nonce : String, now : Time = Time.utc) : Bool

True the first time nonce is shown, false after.

Source