1#include <test/jtx/multisign.h>
2#include <test/jtx/utility.h>
4#include <xrpl/basics/contract.h>
5#include <xrpl/protocol/Sign.h>
6#include <xrpl/protocol/jss.h>
18 jv[jss::Account] = account.human();
19 jv[jss::TransactionType] = jss::SignerListSet;
20 jv[sfSignerQuorum.getJsonName()] = quorum;
21 auto& ja = jv[sfSignerEntries.getJsonName()];
25 auto& je = ja[i][sfSignerEntry.getJsonName()];
26 je[jss::Account] = e.account.human();
27 je[sfSignerWeight.getJsonName()] = e.weight;
29 je[sfWalletLocator.getJsonName()] =
to_string(*e.tag);
38 jv[jss::Account] = account.human();
39 jv[jss::TransactionType] = jss::SignerListSet;
40 jv[sfSignerQuorum.getJsonName()] = 0;
56 sigObject[sfSigningPubKey] =
"";
57 else if (sigObject.isNull())
69 auto& js = sigObject[sfSigners];
72 auto const& e = mySigners[i];
73 auto& jo = js[i][sfSigner.getJsonName()];
74 jo[jss::Account] = e.acct.human();
75 jo[jss::SigningPubKey] =
strHex(e.sig.pk().slice());
log_os< char > log
Logging output stream.
An immutable linear range of bytes.
Immutable cryptographic account descriptor.
A transaction testing environment.
beast::unit_test::suite & test
void operator()(Env &, JTx &jt) const
SField const *const subField
Alternative transaction object field in which to place the signer list.
std::vector< Reg > signers
Set the regular signature on a JTx.
@ objectValue
object value (collection of name/value pairs).
Json::Value signers(Account const &account, std::uint32_t quorum, std::vector< signer > const &v)
STObject parse(Json::Value const &jv)
Convert JSON to STObject.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string to_string(base_uint< Bits, Tag > const &a)
std::string strHex(FwdIt begin, FwdIt end)
std::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
Buffer sign(PublicKey const &pk, SecretKey const &sk, Slice const &message)
Generate a signature for a message.
void Rethrow()
Rethrow the exception currently being handled.
Serializer buildMultiSigningData(STObject const &obj, AccountID const &signingID)
Return a Serializer suitable for computing a multisigning TxnSignature.
Execution context for applying a JSON transaction.
std::vector< std::function< void(Env &, JTx &)> > postSigners
std::vector< std::function< void(Env &, JTx &)> > mainSigners