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

#include <Manifest.h>

Collaboration diagram for ripple::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 80 of file Manifest.h.

Constructor & Destructor Documentation

◆ Manifest() [1/4]

ripple::Manifest::Manifest ( )
delete

◆ Manifest() [2/4]

ripple::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 102 of file Manifest.h.

◆ Manifest() [3/4]

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

◆ Manifest() [4/4]

ripple::Manifest::Manifest ( Manifest &&  other)
default

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ verify()

bool ripple::Manifest::verify ( ) const

Returns true if manifest signature is valid.

Definition at line 196 of file Manifest.cpp.

◆ hash()

uint256 ripple::Manifest::hash ( ) const

Returns hash of serialized manifest data.

Definition at line 217 of file Manifest.cpp.

◆ revoked() [1/2]

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

Returns true if manifest revokes master key.

Definition at line 236 of file Manifest.cpp.

◆ revoked() [2/2]

bool ripple::Manifest::revoked ( ) const

Returns true if manifest revokes master key.

Definition at line 226 of file Manifest.cpp.

◆ getSignature()

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

Returns manifest signature.

Definition at line 244 of file Manifest.cpp.

◆ getMasterSignature()

Blob ripple::Manifest::getMasterSignature ( ) const

Returns manifest master key signature.

Definition at line 255 of file Manifest.cpp.

Member Data Documentation

◆ serialized

std::string ripple::Manifest::serialized

The manifest in serialized form.

Definition at line 83 of file Manifest.h.

◆ masterKey

PublicKey ripple::Manifest::masterKey

The master key associated with this manifest.

Definition at line 86 of file Manifest.h.

◆ signingKey

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

The ephemeral key associated with this manifest.

Definition at line 92 of file Manifest.h.

◆ sequence

std::uint32_t ripple::Manifest::sequence = 0

The sequence number of this manifest.

Definition at line 95 of file Manifest.h.

◆ domain

std::string ripple::Manifest::domain

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

Definition at line 98 of file Manifest.h.