mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor Log code, add LogJournal adapter
This commit is contained in:
@@ -12,6 +12,15 @@ RippleAddress::RippleAddress ()
|
||||
nVersion = VER_NONE;
|
||||
}
|
||||
|
||||
RipplePublicKey RippleAddress::toRipplePublicKey () const
|
||||
{
|
||||
Blob const& b (getNodePublic ());
|
||||
|
||||
check_precondition (b.size () == RipplePublicKey::sizeInBytes);
|
||||
|
||||
return RipplePublicKey (&b [0]);
|
||||
}
|
||||
|
||||
void RippleAddress::clear ()
|
||||
{
|
||||
nVersion = VER_NONE;
|
||||
|
||||
@@ -31,6 +31,11 @@ private:
|
||||
public:
|
||||
RippleAddress ();
|
||||
|
||||
// Convert to a binary public key. If the underlying data
|
||||
// is not appropriate, this will cause a fatal error.
|
||||
//
|
||||
RipplePublicKey toRipplePublicKey () const;
|
||||
|
||||
// For public and private key, checks if they are legal.
|
||||
bool isValid () const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user