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 : data_{std::make_shared<Data>(
49 proposal().closeTime().time_since_epoch().count(),
77 Slice const& publicKey,
78 Slice const& signature)
93 Slice const& signature,
98 , suppression_{suppress}
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.
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
uint256 getSHA512Half() const
Proposal const & proposal() const
T time_since_epoch(T... args)
uint256 signingHash() const
Create the signing hash for the proposal.
@ proposal
proposal for signing
bool verifyDigest(PublicKey const &publicKey, uint256 const &digest, Slice const &sig, bool mustBeFullyCanonical)
Verify a secp256k1 signature on the digest of a message.
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.
sha512_half_hasher::result_type sha512Half(Args const &... args)
Returns the SHA512-Half of a series of objects.
RCLCxPeerPos(PublicKey const &publicKey, Slice const &signature, uint256 const &suppress, Proposal &&proposal)
Constructor.
int addVL(Blob const &vector)
int add32(std::uint32_t i)
Data(PublicKey const &publicKey, Slice const &signature, uint256 const &suppress, Proposal &&proposal)
bool checkSign() const
Verify the signing hash of the proposal.