Calculate a unique identifier for a signed proposal.
uint256 proposalUniqueId( uint256 const& proposeHash, uint256 const& previousLedger, std::uint32_t proposeSeq, NetClock::time_point closeTime, Slice const& publicKey, Slice const& signature);
The identifier is based on all the fields that contribute to the signature, as well as the signature itself. The "last closed ledger" field may be omitted, but the signer will compute the signature as if this field was present. Recipients of the proposal will inject the last closed ledger in order to validate the signature. If the last closed ledger is left out, then it is considered as all zeroes for the purposes of signing.
Name |
Description |
---|---|
|
The hash of the proposed position |
|
The hash of the ledger the proposal is based upon |
|
Sequence number of the proposal |
|
Close time of the proposal |
|
Signer's public key |
|
Proposal signature |
#include <ripple/app/consensus/RCLCxPeerPos.h>