Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/proof.h
| Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | public: | ||||
| } | } | ||||
| static bool useLegacy(); | static bool useLegacy(); | ||||
| static bool useLegacy(const ArgsManager &argsman); | static bool useLegacy(const ArgsManager &argsman); | ||||
| static bool FromHex(Proof &proof, const std::string &hexProof, | static bool FromHex(Proof &proof, const std::string &hexProof, | ||||
| bilingual_str &errorOut); | bilingual_str &errorOut); | ||||
| static uint32_t amountToScore(Amount amount); | |||||
| uint64_t getSequence() const { return sequence; } | uint64_t getSequence() const { return sequence; } | ||||
| int64_t getExpirationTime() const { return expirationTime; } | int64_t getExpirationTime() const { return expirationTime; } | ||||
| const CPubKey &getMaster() const { return master; } | const CPubKey &getMaster() const { return master; } | ||||
| const std::vector<SignedStake> &getStakes() const { return stakes; } | const std::vector<SignedStake> &getStakes() const { return stakes; } | ||||
| const CScript &getPayoutScript() const { return payoutScriptPubKey; } | const CScript &getPayoutScript() const { return payoutScriptPubKey; } | ||||
| std::optional<const SchnorrSig> getSignature() const { | std::optional<const SchnorrSig> getSignature() const { | ||||
| return useLegacy() ? std::nullopt : std::make_optional(signature); | return useLegacy() ? std::nullopt : std::make_optional(signature); | ||||
| } | } | ||||
| Show All 18 Lines | |||||