xrpld
Loading...
Searching...
No Matches
xrpl::Seed Class Reference

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

#include <Seed.h>

Collaboration diagram for xrpl::Seed:

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.
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.
 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 13 of file Seed.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 19 of file Seed.h.

Constructor & Destructor Documentation

◆ Seed() [1/4]

xrpl::Seed::Seed ( )
delete

◆ Seed() [2/4]

xrpl::Seed::Seed ( Seed const & )
default

◆ ~Seed()

xrpl::Seed::~Seed ( )

Destroy the seed.

The buffer will first be securely erased.

Definition at line 26 of file Seed.cpp.

◆ Seed() [3/4]

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

Construct a seed.

Definition at line 31 of file Seed.cpp.

◆ Seed() [4/4]

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

Definition at line 38 of file Seed.cpp.

Member Function Documentation

◆ operator=()

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

◆ data()

std::uint8_t const * xrpl::Seed::data ( ) const
nodiscard

Definition at line 39 of file Seed.h.

◆ size()

std::size_t xrpl::Seed::size ( ) const
nodiscard

Definition at line 45 of file Seed.h.

◆ begin()

const_iterator xrpl::Seed::begin ( ) const
nodiscardnoexcept

Definition at line 51 of file Seed.h.

◆ cbegin()

const_iterator xrpl::Seed::cbegin ( ) const
nodiscardnoexcept

Definition at line 57 of file Seed.h.

◆ end()

const_iterator xrpl::Seed::end ( ) const
nodiscardnoexcept

Definition at line 63 of file Seed.h.

◆ cend()

const_iterator xrpl::Seed::cend ( ) const
nodiscardnoexcept

Definition at line 69 of file Seed.h.

Member Data Documentation

◆ buf_

std::array<uint8_t, 16> xrpl::Seed::buf_ {}
private

Definition at line 16 of file Seed.h.