PrevUpHomeNext

proposalUniqueId

Calculate a unique identifier for a signed proposal.

Synopsis
uint256
proposalUniqueId(
    uint256 const& proposeHash,
    uint256 const& previousLedger,
    std::uint32_t proposeSeq,
    NetClock::time_point closeTime,
    Slice const& publicKey,
    Slice const& signature);
Description

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.

Parameters

Name

Description

proposeHash

The hash of the proposed position

previousLedger

The hash of the ledger the proposal is based upon

proposeSeq

Sequence number of the proposal

closeTime

Close time of the proposal

publicKey

Signer's public key

signature

Proposal signature

Header

#include <ripple/app/consensus/RCLCxPeerPos.h>


PrevUpHomeNext