Fabcoin Core  0.16.2
P2P Digital Currency
Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
dev::crypto::Nonce Class Reference

Generator for non-repeating nonce material. More...

#include <Common.h>

Collaboration diagram for dev::crypto::Nonce:
[legend]

Static Public Member Functions

static Secret get ()
 Returns the next nonce (might be read from a file). More...
 

Private Member Functions

 Nonce ()=default
 
Secret next ()
 

Private Attributes

std::mutex x_value
 
Secret m_value
 

Detailed Description

Generator for non-repeating nonce material.

The Nonce class should only be used when a non-repeating nonce is required and, in its current form, not recommended for signatures. This is primarily because the key-material for signatures is encrypted on disk whereas the seed for Nonce is not. Thus, Nonce's primary intended use at this time is for networking where the key is also stored in plaintext.

Definition at line 201 of file Common.h.

Constructor & Destructor Documentation

dev::crypto::Nonce::Nonce ( )
privatedefault

Member Function Documentation

static Secret dev::crypto::Nonce::get ( )
inlinestatic

Returns the next nonce (might be read from a file).

Definition at line 205 of file Common.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Secret Nonce::next ( )
private
Returns
the next nonce.

Definition at line 335 of file Common.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Secret dev::crypto::Nonce::m_value
private

Definition at line 214 of file Common.h.

std::mutex dev::crypto::Nonce::x_value
private

Definition at line 213 of file Common.h.


The documentation for this class was generated from the following files: