rippled
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
xrpl::Manifest Struct Reference

#include <Manifest.h>

Collaboration diagram for xrpl::Manifest:
Collaboration graph
[legend]

Public Member Functions

 Manifest ()=delete
 
 Manifest (std::string const &serialized_, PublicKey const &masterKey_, std::optional< PublicKey > const &signingKey_, std::uint32_t seq, std::string const &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 60 of file Manifest.h.

Constructor & Destructor Documentation

◆ Manifest() [1/4]

xrpl::Manifest::Manifest ( )
delete

◆ Manifest() [2/4]

xrpl::Manifest::Manifest ( std::string const &  serialized_,
PublicKey const &  masterKey_,
std::optional< PublicKey > const &  signingKey_,
std::uint32_t  seq,
std::string const &  domain_ 
)

Definition at line 82 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

Returns true if manifest signature is valid.

Definition at line 162 of file Manifest.cpp.

◆ hash()

uint256 xrpl::Manifest::hash ( ) const

Returns hash of serialized manifest data.

Definition at line 182 of file Manifest.cpp.

◆ revoked() [1/2]

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

Returns true if manifest revokes master key.

Definition at line 201 of file Manifest.cpp.

◆ revoked() [2/2]

bool xrpl::Manifest::revoked ( ) const

Returns true if manifest revokes master key.

Definition at line 191 of file Manifest.cpp.

◆ getSignature()

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

Returns manifest signature.

Definition at line 209 of file Manifest.cpp.

◆ getMasterSignature()

Blob xrpl::Manifest::getMasterSignature ( ) const

Returns manifest master key signature.

Definition at line 220 of file Manifest.cpp.

Member Data Documentation

◆ serialized

std::string xrpl::Manifest::serialized

The manifest in serialized form.

Definition at line 63 of file Manifest.h.

◆ masterKey

PublicKey xrpl::Manifest::masterKey

The master key associated with this manifest.

Definition at line 66 of file Manifest.h.

◆ signingKey

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

The ephemeral key associated with this manifest.

Definition at line 72 of file Manifest.h.

◆ sequence

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

The sequence number of this manifest.

Definition at line 75 of file Manifest.h.

◆ domain

std::string xrpl::Manifest::domain

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

Definition at line 78 of file Manifest.h.