xrpld
Loading...
Searching...
No Matches
xrpl::Manifest Struct Reference

#include <Manifest.h>

Collaboration diagram for xrpl::Manifest:

Public Member Functions

 Manifest ()=delete
 Manifest (std::string serialized, PublicKey const &masterKey, std::optional< PublicKey > const &signingKey, std::uint32_t seq, std::string domain)
 Manifest (Manifest const &other)=delete
Manifestoperator= (Manifest const &other)=delete
 Manifest (Manifest &&other)=default
Manifestoperator= (Manifest &&other)=default
bool verify () const
 Returns true if manifest signature is valid.
uint256 hash () const
 Returns hash of serialized manifest data.
bool revoked () const
 Returns true if manifest revokes master key.
std::optional< BlobgetSignature () const
 Returns manifest signature.
Blob getMasterSignature () const
 Returns manifest master key signature.

Static Public Member Functions

static bool revoked (std::uint32_t sequence)
 Returns true if manifest revokes master key.

Public Attributes

std::string serialized
 The manifest in serialized form.
PublicKey masterKey
 The master key associated with this manifest.
std::optional< PublicKeysigningKey
 The ephemeral key associated with this manifest.
std::uint32_t sequence = 0
 The sequence number of this manifest.
std::string domain
 The domain, if one was specified in the manifest; empty otherwise.

Detailed Description

Definition at line 61 of file Manifest.h.

Constructor & Destructor Documentation

◆ Manifest() [1/4]

xrpl::Manifest::Manifest ( )
delete

◆ Manifest() [2/4]

xrpl::Manifest::Manifest ( std::string serialized,
PublicKey const & masterKey,
std::optional< PublicKey > const & signingKey,
std::uint32_t seq,
std::string domain )

Definition at line 83 of file Manifest.h.

◆ Manifest() [3/4]

xrpl::Manifest::Manifest ( Manifest const & other)
delete

◆ Manifest() [4/4]

xrpl::Manifest::Manifest ( Manifest && other)
default

Member Function Documentation

◆ operator=() [1/2]

Manifest & xrpl::Manifest::operator= ( Manifest const & other)
delete

◆ operator=() [2/2]

Manifest & xrpl::Manifest::operator= ( Manifest && other)
default

◆ verify()

bool xrpl::Manifest::verify ( ) const
nodiscard

Returns true if manifest signature is valid.

Definition at line 194 of file libxrpl/server/Manifest.cpp.

◆ hash()

uint256 xrpl::Manifest::hash ( ) const
nodiscard

Returns hash of serialized manifest data.

Definition at line 214 of file libxrpl/server/Manifest.cpp.

◆ revoked() [1/2]

bool xrpl::Manifest::revoked ( std::uint32_t sequence)
static

Returns true if manifest revokes master key.

Definition at line 233 of file libxrpl/server/Manifest.cpp.

◆ revoked() [2/2]

bool xrpl::Manifest::revoked ( ) const
nodiscard

Returns true if manifest revokes master key.

Definition at line 223 of file libxrpl/server/Manifest.cpp.

◆ getSignature()

std::optional< Blob > xrpl::Manifest::getSignature ( ) const
nodiscard

Returns manifest signature.

Definition at line 241 of file libxrpl/server/Manifest.cpp.

◆ getMasterSignature()

Blob xrpl::Manifest::getMasterSignature ( ) const
nodiscard

Returns manifest master key signature.

Definition at line 252 of file libxrpl/server/Manifest.cpp.

Member Data Documentation

◆ serialized

std::string xrpl::Manifest::serialized

The manifest in serialized form.

Definition at line 64 of file Manifest.h.

◆ masterKey

PublicKey xrpl::Manifest::masterKey

The master key associated with this manifest.

Definition at line 67 of file Manifest.h.

◆ signingKey

std::optional<PublicKey> xrpl::Manifest::signingKey

The ephemeral key associated with this manifest.

Definition at line 73 of file Manifest.h.

◆ sequence

std::uint32_t xrpl::Manifest::sequence = 0

The sequence number of this manifest.

Definition at line 76 of file Manifest.h.

◆ domain

std::string xrpl::Manifest::domain

The domain, if one was specified in the manifest; empty otherwise.

Definition at line 79 of file Manifest.h.