| 
    rippled
    
   | 
 
A peer's signed, proposed position for use in RCLConsensus. More...
#include <RCLCxPeerPos.h>

Public Types | |
| using | Proposal = ConsensusProposal< NodeID, uint256, uint256 > | 
Public Member Functions | |
| RCLCxPeerPos (PublicKey const &publicKey, Slice const &signature, uint256 const &suppress, Proposal &&proposal) | |
| Constructor.   | |
| bool | checkSign () const | 
| Verify the signing hash of the proposal.   | |
| Slice | signature () const | 
| Signature of the proposal (not necessarily verified)   | |
| PublicKey const & | publicKey () const | 
| Public key of peer that sent the proposal.   | |
| uint256 const & | suppressionID () const | 
| Unique id used by hash router to suppress duplicates.   | |
| Proposal const & | proposal () const | 
| Json::Value | getJson () const | 
| JSON representation of proposal.   | |
| std::string | render () const | 
Private Member Functions | |
| template<class Hasher > | |
| void | hash_append (Hasher &h) const | 
Private Attributes | |
| PublicKey | publicKey_ | 
| uint256 | suppression_ | 
| Proposal | proposal_ | 
| boost::container::static_vector< std::uint8_t, 72 > | signature_ | 
A peer's signed, proposed position for use in RCLConsensus.
Carries a ConsensusProposal signed by a peer. Provides value semantics but manages shared storage of the peer position internally.
Definition at line 43 of file RCLCxPeerPos.h.
Definition at line 47 of file RCLCxPeerPos.h.
| ripple::RCLCxPeerPos::RCLCxPeerPos | ( | PublicKey const & | publicKey, | 
| Slice const & | signature, | ||
| uint256 const & | suppress, | ||
| Proposal && | proposal | ||
| ) | 
Constructor.
Constructs a signed peer position.
| publicKey | Public key of the peer | 
| signature | Signature provided with the proposal | 
| suppress | Unique id used for hash router suppression | 
| proposal | The consensus proposal | 
Definition at line 28 of file RCLCxPeerPos.cpp.
| bool ripple::RCLCxPeerPos::checkSign | ( | ) | const | 
Verify the signing hash of the proposal.
Definition at line 48 of file RCLCxPeerPos.cpp.
| Slice ripple::RCLCxPeerPos::signature | ( | ) | const | 
Signature of the proposal (not necessarily verified)
Definition at line 71 of file RCLCxPeerPos.h.
| PublicKey const & ripple::RCLCxPeerPos::publicKey | ( | ) | const | 
Public key of peer that sent the proposal.
Definition at line 78 of file RCLCxPeerPos.h.
| uint256 const & ripple::RCLCxPeerPos::suppressionID | ( | ) | const | 
Unique id used by hash router to suppress duplicates.
Definition at line 85 of file RCLCxPeerPos.h.
| Proposal const & ripple::RCLCxPeerPos::proposal | ( | ) | const | 
Definition at line 91 of file RCLCxPeerPos.h.
| Json::Value ripple::RCLCxPeerPos::getJson | ( | ) | const | 
JSON representation of proposal.
Definition at line 55 of file RCLCxPeerPos.cpp.
| std::string ripple::RCLCxPeerPos::render | ( | ) | const | 
Definition at line 101 of file RCLCxPeerPos.h.
      
  | 
  private | 
Definition at line 114 of file RCLCxPeerPos.h.
      
  | 
  private | 
Definition at line 107 of file RCLCxPeerPos.h.
      
  | 
  private | 
Definition at line 108 of file RCLCxPeerPos.h.
      
  | 
  private | 
Definition at line 109 of file RCLCxPeerPos.h.
      
  | 
  private | 
Definition at line 110 of file RCLCxPeerPos.h.