xrpld
Loading...
Searching...
No Matches
xrpl::test::jtx::Sig Class Reference

Set the regular signature on a JTx. More...

#include <sig.h>

Collaboration diagram for xrpl::test::jtx::Sig:

Public Member Functions

 Sig (AutofillT)
 Sig (NoneT)
 Sig (SField const *subField, Account const &account)
 Sig (SField const &subField, Account const &account)
 Sig (Account const &account)
void operator() (Env &, JTx &jt) const

Private Attributes

bool manual_ = true
SField const *const subField_ = nullptr
 Alternative transaction object field in which to place the signature.
std::optional< Accountaccount_
 Account that will generate the signature.

Static Private Attributes

static constexpr SField const * kTopLevel = nullptr
 Used solely as a convenience placeholder for ctors that do not specify a subfield.

Detailed Description

Set the regular signature on a JTx.

Note
For multisign, use msig.

Definition at line 12 of file sig.h.

Constructor & Destructor Documentation

◆ Sig() [1/5]

xrpl::test::jtx::Sig::Sig ( AutofillT )
explicit

Definition at line 32 of file sig.h.

◆ Sig() [2/5]

xrpl::test::jtx::Sig::Sig ( NoneT )
explicit

Definition at line 36 of file sig.h.

◆ Sig() [3/5]

xrpl::test::jtx::Sig::Sig ( SField const * subField,
Account const & account )
explicit

Definition at line 40 of file sig.h.

◆ Sig() [4/5]

xrpl::test::jtx::Sig::Sig ( SField const & subField,
Account const & account )
explicit

Definition at line 45 of file sig.h.

◆ Sig() [5/5]

xrpl::test::jtx::Sig::Sig ( Account const & account)
explicit

Definition at line 49 of file sig.h.

Member Function Documentation

◆ operator()()

void xrpl::test::jtx::Sig::operator() ( Env & ,
JTx & jt ) const

Definition at line 10 of file sig.cpp.

Member Data Documentation

◆ manual_

bool xrpl::test::jtx::Sig::manual_ = true
private

Definition at line 15 of file sig.h.

◆ subField_

SField const* const xrpl::test::jtx::Sig::subField_ = nullptr
private

Alternative transaction object field in which to place the signature.

subField is only supported if an account_ is provided as well.

Definition at line 20 of file sig.h.

◆ account_

std::optional<Account> xrpl::test::jtx::Sig::account_
private

Account that will generate the signature.

If not provided, no signature will be added by this helper. See also Env::autofillSig.

Definition at line 26 of file sig.h.

◆ kTopLevel

SField const* xrpl::test::jtx::Sig::kTopLevel = nullptr
staticconstexprprivate

Used solely as a convenience placeholder for ctors that do not specify a subfield.

Definition at line 29 of file sig.h.