1#include <xrpl/nodestore/NodeObject.h>
3#include <xrpl/basics/Blob.h>
4#include <xrpl/basics/base_uint.h>
NodeObject(NodeObjectType type, Blob &&data, uint256 const &hash, PrivateAccess)
NodeObjectType getType() const
Returns the type of this object.
static std::shared_ptr< NodeObject > createObject(NodeObjectType type, Blob &&data, uint256 const &hash)
Create an object from fields.
NodeObjectType const type_
uint256 const & getHash() const
Returns the hash of the data.
Blob const & getData() const
Returns the underlying data.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
NodeObjectType
The types of node objects.
std::vector< unsigned char > Blob
Storage for linear binary data.