20#include <test/jtx/multisign.h>
21#include <test/jtx/utility.h>
23#include <xrpl/basics/contract.h>
24#include <xrpl/protocol/Sign.h>
25#include <xrpl/protocol/jss.h>
40 jv[jss::Account] = account.human();
41 jv[jss::TransactionType] = jss::SignerListSet;
42 jv[sfSignerQuorum.getJsonName()] = quorum;
43 auto& ja = jv[sfSignerEntries.getJsonName()];
47 auto& je = ja[i][sfSignerEntry.getJsonName()];
48 je[jss::Account] = e.account.human();
49 je[sfSignerWeight.getJsonName()] = e.weight;
51 je[sfWalletLocator.getJsonName()] =
to_string(*e.tag);
60 jv[jss::Account] = account.human();
61 jv[jss::TransactionType] = jss::SignerListSet;
62 jv[sfSignerQuorum.getJsonName()] = 0;
73 jtx[sfSigningPubKey.getJsonName()] =
"";
84 auto& js = jtx[sfSigners.getJsonName()];
87 auto const& e = mySigners[i];
88 auto& jo = js[i][sfSigner.getJsonName()];
89 jo[jss::Account] = e.acct.human();
90 jo[jss::SigningPubKey] =
strHex(e.sig.pk().slice());
95 jo[sfTxnSignature.getJsonName()] =
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
std::vector< Reg > signers
Set the regular signature on a JTx.
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.
Serializer buildMultiSigningData(STObject const &obj, AccountID const &signingID)
Return a Serializer suitable for computing a multisigning TxnSignature.
Buffer sign(PublicKey const &pk, SecretKey const &sk, Slice const &message)
Generate a signature for a message.
std::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
std::string strHex(FwdIt begin, FwdIt end)
std::string to_string(base_uint< Bits, Tag > const &a)
void Rethrow()
Rethrow the exception currently being handled.
Execution context for applying a JSON transaction.
std::function< void(Env &, JTx &)> signer