20 #include <ripple/basics/contract.h>
21 #include <ripple/protocol/HashPrefix.h>
22 #include <ripple/protocol/Sign.h>
23 #include <ripple/protocol/UintTypes.h>
24 #include <ripple/protocol/jss.h>
25 #include <test/jtx/multisign.h>
26 #include <test/jtx/utility.h>
39 jv[jss::Account] = account.human();
40 jv[jss::TransactionType] = jss::SignerListSet;
47 je[jss::Account] = e.account.human();
57 jv[jss::Account] = account.human();
58 jv[jss::TransactionType] = jss::SignerListSet;
72 return lhs.acct.id() < rhs.acct.id();
82 boost::optional<STObject> st;
95 auto const& e = mySigners[i];
97 jo[jss::Account] = e.acct.human();
98 jo[jss::SigningPubKey] =
strHex(e.sig.pk().slice());
const SF_UINT16 sfSignerWeight
boost::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
An immutable linear range of bytes.
const SF_VL sfSigningPubKey
msig(std::vector< Reg > signers_)
Json::StaticString const & getJsonName() const
const SF_UINT32 sfSignerQuorum
Json::Value signers(Account const &account, std::uint32_t quorum, std::vector< signer > const &v)
void Rethrow()
Rethrow the exception currently being handled.
Execution context for applying a JSON transaction.
Set the regular signature on a JTx.
void operator()(Env &, JTx &jt) const
beast::unit_test::suite & test
std::function< void(Env &, JTx &)> signer
const SField sfSignerEntry
const SField sfSignerEntries
std::vector< Reg > signers
const SF_VL sfTxnSignature
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Buffer sign(PublicKey const &pk, SecretKey const &sk, Slice const &m)
Generate a signature for a message.
Immutable cryptographic account descriptor.
std::string strHex(FwdIt begin, FwdIt end)
STObject parse(Json::Value const &jv)
Convert JSON to STObject.
Serializer buildMultiSigningData(STObject const &obj, AccountID const &signingID)
Return a Serializer suitable for computing a multisigning TxnSignature.
A transaction testing environment.