rippled
Public Types | Public Member Functions | Private Attributes | List of all members
ripple::Seed Class Reference

Seeds are used to generate deterministic secret keys. More...

Collaboration diagram for ripple::Seed:
Collaboration graph
[legend]

Public Types

using const_iterator = std::array< uint8_t, 16 >::const_iterator
 

Public Member Functions

 Seed ()=delete
 
 Seed (Seed const &)=default
 
Seedoperator= (Seed const &)=default
 
 ~Seed ()
 Destroy the seed. More...
 
std::uint8_t const * data () const
 
std::size_t size () const
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator end () const noexcept
 
const_iterator cend () const noexcept
 
 Seed (Slice const &slice)
 Construct a seed. More...
 
 Seed (uint128 const &seed)
 

Private Attributes

std::array< uint8_t, 16 > buf_
 

Detailed Description

Seeds are used to generate deterministic secret keys.

Definition at line 32 of file Seed.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 38 of file Seed.h.

Constructor & Destructor Documentation

◆ Seed() [1/4]

ripple::Seed::Seed ( )
delete

◆ Seed() [2/4]

ripple::Seed::Seed ( Seed const &  )
default

◆ ~Seed()

ripple::Seed::~Seed ( )

Destroy the seed.

The buffer will first be securely erased.

Definition at line 37 of file Seed.cpp.

◆ Seed() [3/4]

ripple::Seed::Seed ( Slice const &  slice)
explicit

Construct a seed.

Definition at line 42 of file Seed.cpp.

◆ Seed() [4/4]

ripple::Seed::Seed ( uint128 const &  seed)
explicit

Definition at line 49 of file Seed.cpp.

Member Function Documentation

◆ operator=()

Seed& ripple::Seed::operator= ( Seed const &  )
default

◆ data()

std::uint8_t const* ripple::Seed::data ( ) const

Definition at line 58 of file Seed.h.

◆ size()

std::size_t ripple::Seed::size ( ) const

Definition at line 64 of file Seed.h.

◆ begin()

const_iterator ripple::Seed::begin ( ) const
noexcept

Definition at line 70 of file Seed.h.

◆ cbegin()

const_iterator ripple::Seed::cbegin ( ) const
noexcept

Definition at line 76 of file Seed.h.

◆ end()

const_iterator ripple::Seed::end ( ) const
noexcept

Definition at line 82 of file Seed.h.

◆ cend()

const_iterator ripple::Seed::cend ( ) const
noexcept

Definition at line 88 of file Seed.h.

Member Data Documentation

◆ buf_

std::array<uint8_t, 16> ripple::Seed::buf_
private

Definition at line 35 of file Seed.h.