20 #include <test/jtx/multisign.h>
21 #include <test/jtx/utility.h>
22 #include <ripple/protocol/HashPrefix.h>
23 #include <ripple/protocol/jss.h>
24 #include <ripple/protocol/Sign.h>
25 #include <ripple/protocol/UintTypes.h>
26 #include <ripple/basics/contract.h>
38 jv[jss::Account] = account.human();
39 jv[jss::TransactionType] = jss::SignerListSet;
46 je[jss::Account] = e.account.human();
56 jv[jss::Account] = account.human();
57 jv[jss::TransactionType] = jss::SignerListSet;
71 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());
boost::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
const SField sfSigners(access, STI_ARRAY, 3, "Signers", SField::sMD_Default, SField::notSigning)
An immutable linear range of bytes.
const SF_Blob sfSigningPubKey(access, STI_VL, 3, "SigningPubKey")
const SF_U32 sfSignerQuorum(access, STI_UINT32, 35, "SignerQuorum")
msig(std::vector< Reg > signers_)
const SField sfSigner(access, STI_OBJECT, 16, "Signer")
Json::StaticString const & getJsonName() const
const SField sfSignerEntries(access, STI_ARRAY, 4, "SignerEntries")
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.
const SF_Blob sfTxnSignature(access, STI_VL, 4, "TxnSignature", SField::sMD_Default, SField::notSigning)
const SField sfSignerEntry(access, STI_OBJECT, 11, "SignerEntry")
Set the regular signature on a JTx.
void operator()(Env &, JTx &jt) const
beast::unit_test::suite & test
std::function< void(Env &, JTx &)> signer
std::vector< Reg > signers
const SF_U16 sfSignerWeight(access, STI_UINT16, 3, "SignerWeight")
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.