Remove RippleAddress:

The RippleAddress class was used to represent a number of fundamentally
different types: account public keys, account secret keys, node public
keys, node secret keys, seeds and generators.

The class is replaced by the following types:
* PublicKey for account and node public keys
* SecretKey for account and node private keys
* Generator for generating secp256k1 accounts
* Seed for account, node and generator seeds
This commit is contained in:
Nik Bougalis
2015-10-22 02:15:04 -07:00
parent e0af6ec567
commit 3974ddd8f7
116 changed files with 2445 additions and 4272 deletions

View File

@@ -94,7 +94,7 @@ public:
std::multiset <beast::IP::Address> connectedAddresses_;
// Set of public keys belonging to active peers
std::set <RipplePublicKey> keys_;
std::set <PublicKey> keys_;
// A list of dynamic sources to consult as a fallback
std::vector <beast::SharedPtr <Source>> m_sources;
@@ -371,7 +371,7 @@ public:
Result
activate (SlotImp::ptr const& slot,
RipplePublicKey const& key, bool cluster)
PublicKey const& key, bool cluster)
{
if (m_journal.debug) m_journal.debug << beast::leftw (18) <<
"Logic handshake " << slot->remote_endpoint () <<

View File

@@ -181,7 +181,7 @@ public:
Result
activate (Slot::ptr const& slot,
RipplePublicKey const& key, bool cluster) override
PublicKey const& key, bool cluster) override
{
SlotImp::ptr impl (std::dynamic_pointer_cast <SlotImp> (slot));
return m_logic.activate (impl, key, cluster);

View File

@@ -78,7 +78,7 @@ public:
return m_local_endpoint;
}
boost::optional <RipplePublicKey> const& public_key () const
boost::optional <PublicKey> const& public_key () const
{
return m_public_key;
}
@@ -106,7 +106,7 @@ public:
m_remote_endpoint = endpoint;
}
void public_key (RipplePublicKey const& key)
void public_key (PublicKey const& key)
{
m_public_key = key;
}
@@ -160,7 +160,7 @@ private:
State m_state;
beast::IP::Endpoint m_remote_endpoint;
boost::optional <beast::IP::Endpoint> m_local_endpoint;
boost::optional <RipplePublicKey> m_public_key;
boost::optional <PublicKey> m_public_key;
static std::int32_t BEAST_CONSTEXPR unknownPort = -1;
std::atomic <std::int32_t> m_listening_port;