1#ifndef XRPL_PROTOCOL_STTX_H_INCLUDED
2#define XRPL_PROTOCOL_STTX_H_INCLUDED
4#include <xrpl/basics/Expected.h>
5#include <xrpl/protocol/Feature.h>
6#include <xrpl/protocol/PublicKey.h>
7#include <xrpl/protocol/Rules.h>
8#include <xrpl/protocol/STObject.h>
9#include <xrpl/protocol/SecretKey.h>
10#include <xrpl/protocol/SeqProxy.h>
11#include <xrpl/protocol/TxFormats.h>
13#include <boost/container/flat_set.hpp>
87 boost::container::flat_set<AccountID>
110 Expected<void, std::string>
113 Expected<void, std::string>
141 Expected<void, std::string>
142 checkSign(Rules
const& rules, STObject
const& sigObject)
const;
144 Expected<void, std::string>
147 Expected<void, std::string>
148 checkMultiSign(Rules
const& rules, STObject
const& sigObject)
const;
150 Expected<void, std::string>
153 Expected<void, std::string>
Tracks the number of instances of an object.
Blob getFieldVL(SField const &field) const
boost::container::flat_set< AccountID > getMentionedAccounts() const
uint256 getSigningHash() const
static std::string const & getMetaSQLInsertReplaceHeader()
std::vector< uint256 > batchTxnIds_
SeqProxy getSeqProxy() const
static constexpr std::size_t minMultiSigners
Json::Value getJson(JsonOptions options) const override
std::vector< uint256 > const & getBatchTransactionIDs() const
Retrieves a batch of transaction IDs from the STTx.
STBase * move(std::size_t n, void *buf) override
Expected< void, std::string > checkBatchMultiSign(STObject const &batchSigner, Rules const &rules) const
Expected< void, std::string > checkBatchSingleSign(STObject const &batchSigner) const
static constexpr std::size_t maxMultiSigners
Expected< void, std::string > checkBatchSign(Rules const &rules) const
Blob getSigningPubKey() const
STTx & operator=(STTx const &other)=delete
Blob getSignature() const
Expected< void, std::string > checkSingleSign(STObject const &sigObject) const
Expected< void, std::string > checkMultiSign(Rules const &rules, STObject const &sigObject) const
std::uint32_t getSeqValue() const
Returns the first non-zero value of (Sequence, TicketSequence).
STTx(STTx const &other)=default
void sign(PublicKey const &publicKey, SecretKey const &secretKey, std::optional< std::reference_wrapper< SField const > > signatureTarget={})
TxType getTxnType() const
std::string getMetaSQL(std::uint32_t inLedger, std::string const &escapedMetaData) const
Expected< void, std::string > checkSign(Rules const &rules) const
Check the signature.
uint256 getTransactionID() const
SerializedTypeID getSType() const override
std::string getFullText() const override
STBase * copy(std::size_t n, void *buf) const override
A type that represents either a sequence value or a ticket value.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::shared_ptr< STTx const > sterilize(STTx const &stx)
Sterilize a transaction.
TxType
Transaction type identifiers.
bool isPseudoTx(STObject const &tx)
Check whether a transaction is a pseudo-transaction.
bool passesLocalChecks(STObject const &st, std::string &)
Note, should be treated as flags that can be | and &.