Struct ethcore_signer::AuthCodes [] [src]

pub struct AuthCodes<T: TimeProvider = DefaultTimeProvider> { /* fields omitted */ }

Manages authorization codes for SignerUIs

Methods

impl AuthCodes<DefaultTimeProvider>
[src]

Reads AuthCodes from file and creates new instance using DefaultTimeProvider.

impl<T: TimeProvider> AuthCodes<T>
[src]

Writes all AuthCodes to a disk.

Creates a new AuthCodes store with given TimeProvider.

Checks if given hash is correct authcode of SignerUI Updates this hash last used field in case it's valid.

Generates and returns a new code that can be used by SignerUIs

Returns true if there are no tokens in this store

Removes old tokens that have not been used since creation.