TARAXA
dev::crypto::Nonce Class Reference

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. More...

#include <Common.h>

Collaboration diagram for dev::crypto::Nonce:

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.

Constructor & Destructor Documentation

◆ Nonce()

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

Member Function Documentation

◆ get()

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

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

◆ next()

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

Member Data Documentation

◆ m_value

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

◆ x_value

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

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