rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ripple::test::jtx::sig Class Reference

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

#include <sig.h>

Collaboration diagram for ripple::test::jtx::sig:
Collaboration graph
[legend]

Public Member Functions

 sig (autofill_t)
 
 sig (none_t)
 
 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 topLevel = 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 15 of file sig.h.

Constructor & Destructor Documentation

◆ sig() [1/5]

ripple::test::jtx::sig::sig ( autofill_t  )
explicit

Definition at line 35 of file sig.h.

◆ sig() [2/5]

ripple::test::jtx::sig::sig ( none_t  )
explicit

Definition at line 39 of file sig.h.

◆ sig() [3/5]

ripple::test::jtx::sig::sig ( SField const *  subField,
Account const &  account 
)
explicit

Definition at line 43 of file sig.h.

◆ sig() [4/5]

ripple::test::jtx::sig::sig ( SField const &  subField,
Account const &  account 
)
explicit

Definition at line 48 of file sig.h.

◆ sig() [5/5]

ripple::test::jtx::sig::sig ( Account const &  account)
explicit

Definition at line 53 of file sig.h.

Member Function Documentation

◆ operator()()

void ripple::test::jtx::sig::operator() ( Env ,
JTx jt 
) const

Definition at line 9 of file sig.cpp.

Member Data Documentation

◆ manual_

bool ripple::test::jtx::sig::manual_ = true
private

Definition at line 18 of file sig.h.

◆ subField_

SField const* const ripple::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 23 of file sig.h.

◆ account_

std::optional<Account> ripple::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::autofill_sig.

Definition at line 29 of file sig.h.

◆ topLevel

constexpr SField* const ripple::test::jtx::sig::topLevel = nullptr
staticconstexprprivate

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

Definition at line 32 of file sig.h.