20 #include <ripple/app/consensus/RCLCxPeerPos.h>
21 #include <ripple/core/Config.h>
22 #include <ripple/protocol/HashPrefix.h>
23 #include <ripple/protocol/Serializer.h>
24 #include <ripple/protocol/digest.h>
25 #include <ripple/protocol/jss.h>
32 Slice const& signature,
35 : publicKey_(publicKey)
36 , suppression_(suppression)
71 Slice const& publicKey,
72 Slice const& signature)
std::size_t size() const noexcept
Returns the number of bytes in the storage.
Slice signature() const
Signature of the proposal (not necessarily verified)
An immutable linear range of bytes.
Json::Value getJson() const
Get JSON representation for debugging.
const_iterator end() const noexcept
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
uint256 getSHA512Half() const
Proposal const & proposal() const
boost::container::static_vector< std::uint8_t, 72 > signature_
T time_since_epoch(T... args)
@ proposal
proposal for signing
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.
PublicKey const & publicKey() const
Public key of peer that sent the proposal.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
int addBitString(base_uint< Bits, Tag > const &v)
Json::Value getJson() const
JSON representation of proposal.
bool verifyDigest(PublicKey const &publicKey, uint256 const &digest, Slice const &sig, bool mustBeFullyCanonical) noexcept
Verify a secp256k1 signature on the digest of a message.
uint256 const & signingHash() const
The digest for this proposal, used for signing purposes.
RCLCxPeerPos(PublicKey const &publicKey, Slice const &signature, uint256 const &suppress, Proposal &&proposal)
Constructor.
int addVL(Blob const &vector)
int add32(std::uint32_t i)
bool checkSign() const
Verify the signing hash of the proposal.
const_iterator begin() const noexcept