rippled
Loading...
Searching...
No Matches
regkey.cpp
1#include <test/jtx/regkey.h>
2
3#include <xrpl/protocol/jss.h>
4
5namespace ripple {
6namespace test {
7namespace jtx {
8
10regkey(Account const& account, disabled_t)
11{
12 Json::Value jv;
13 jv[jss::Account] = account.human();
14 jv[jss::TransactionType] = jss::SetRegularKey;
15 return jv;
16}
17
19regkey(Account const& account, Account const& signer)
20{
21 Json::Value jv;
22 jv[jss::Account] = account.human();
23 jv["RegularKey"] = to_string(signer.id());
24 jv[jss::TransactionType] = jss::SetRegularKey;
25 return jv;
26}
27
28} // namespace jtx
29} // namespace test
30} // namespace ripple
Represents a JSON value.
Definition json_value.h:130
Immutable cryptographic account descriptor.
Definition Account.h:20
Json::Value regkey(Account const &account, disabled_t)
Disable the regular key.
Definition regkey.cpp:10
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:611
A signer in a SignerList.
Definition multisign.h:20