mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Cleanups:
* Remove obsolete config variables * Reduce coupling * Use C++11 ownership containers * Use auto when it makes sense * Detect edge-case in unit tests * Reduce the number of LedgerEntrySet public members
This commit is contained in:
@@ -75,6 +75,17 @@ std::string RippleAddress::humanAddressType () const
|
||||
// NodePublic
|
||||
//
|
||||
|
||||
uint160 Hash160 (Blob const& vch)
|
||||
{
|
||||
uint256 hash1;
|
||||
SHA256 (vch.data (), vch.size (), hash1.data ());
|
||||
|
||||
uint160 hash2;
|
||||
RIPEMD160 (hash1.data (), hash1.size (), hash2.data ());
|
||||
|
||||
return hash2;
|
||||
}
|
||||
|
||||
RippleAddress RippleAddress::createNodePublic (RippleAddress const& naSeed)
|
||||
{
|
||||
CKey ckSeed (naSeed.getSeed ());
|
||||
|
||||
Reference in New Issue
Block a user