20#include <test/jtx/multisign.h>
21#include <test/jtx/utility.h>
22#include <xrpl/basics/contract.h>
23#include <xrpl/protocol/Sign.h>
24#include <xrpl/protocol/jss.h>
39 jv[jss::Account] = account.human();
40 jv[jss::TransactionType] = jss::SignerListSet;
41 jv[sfSignerQuorum.getJsonName()] = quorum;
42 auto& ja = jv[sfSignerEntries.getJsonName()];
46 auto& je = ja[i][sfSignerEntry.getJsonName()];
47 je[jss::Account] = e.account.human();
48 je[sfSignerWeight.getJsonName()] = e.weight;
50 je[sfWalletLocator.getJsonName()] =
to_string(*e.tag);
59 jv[jss::Account] = account.human();
60 jv[jss::TransactionType] = jss::SignerListSet;
61 jv[sfSignerQuorum.getJsonName()] = 0;
74 return lhs.acct.id() < rhs.acct.id();
83 jtx[sfSigningPubKey.getJsonName()] =
"";
94 auto& js = jtx[sfSigners.getJsonName()];
97 auto const& e = mySigners[i];
98 auto& jo = js[i][sfSigner.getJsonName()];
99 jo[jss::Account] = e.acct.human();
100 jo[jss::SigningPubKey] =
strHex(e.sig.pk().slice());
105 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
msig(std::vector< Reg > signers_)
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