20#include <xrpld/app/consensus/RCLCxPeerPos.h> 
   22#include <xrpl/protocol/Serializer.h> 
   23#include <xrpl/protocol/jss.h> 
   30    Slice const& signature,
 
   33    : publicKey_(publicKey)
 
   34    , suppression_(suppression)
 
   41        "ripple::RCLCxPeerPos::RCLCxPeerPos : valid signature size");
 
 
   71    Slice const& publicKey,
 
   72    Slice const& signature)
 
 
uint256 const & signingHash() const
The digest for this proposal, used for signing purposes.
 
Json::Value getJson() const
Get JSON representation for debugging.
 
Proposal const & proposal() const
 
boost::container::static_vector< std::uint8_t, 72 > signature_
 
RCLCxPeerPos(PublicKey const &publicKey, Slice const &signature, uint256 const &suppress, Proposal &&proposal)
Constructor.
 
bool checkSign() const
Verify the signing hash of the proposal.
 
Json::Value getJson() const
JSON representation of proposal.
 
PublicKey const & publicKey() const
Public key of peer that sent the proposal.
 
Slice signature() const
Signature of the proposal (not necessarily verified)
 
uint256 getSHA512Half() const
 
int addBitString(base_uint< Bits, Tag > const &v)
 
int addVL(Blob const &vector)
 
An immutable linear range of bytes.
 
const_iterator begin() const noexcept
 
const_iterator end() const noexcept
 
std::size_t size() const noexcept
Returns the number of bytes in the storage.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
 
uint256 proposalUniqueId(uint256 const &proposeHash, uint256 const &previousLedger, std::uint32_t proposeSeq, NetClock::time_point closeTime, Slice const &publicKey, Slice const &signature)
Calculate a unique identifier for a signed proposal.
 
bool verifyDigest(PublicKey const &publicKey, uint256 const &digest, Slice const &sig, bool mustBeFullyCanonical=true) noexcept
Verify a secp256k1 signature on the digest of a message.
 
@ proposal
proposal for signing
 
T time_since_epoch(T... args)