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

Produces a sequence of secp256k1 key pairs. More...

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

Public Member Functions

 Generator (Seed const &seed)
 
std::pair< PublicKey, SecretKeyoperator() (Seed const &seed, std::size_t ordinal) const
 Generate the nth key pair. More...
 

Private Attributes

Blob gen_
 

Detailed Description

Produces a sequence of secp256k1 key pairs.

Definition at line 59 of file SecretKey.cpp.

Constructor & Destructor Documentation

◆ Generator()

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

Definition at line 65 of file SecretKey.cpp.

Member Function Documentation

◆ operator()()

std::pair<PublicKey, SecretKey> ripple::Generator::operator() ( Seed const &  seed,
std::size_t  ordinal 
) const

Generate the nth key pair.

The seed is required to produce the private key.

Definition at line 79 of file SecretKey.cpp.

Member Data Documentation

◆ gen_

Blob ripple::Generator::gen_
private

Definition at line 62 of file SecretKey.cpp.