xrpld
Loading...
Searching...
No Matches
/libxrpl/helpers/Account.cpp
1#include <helpers/Account.h>
2
3#include <xrpl/protocol/KeyType.h>
4#include <xrpl/protocol/PublicKey.h>
5#include <xrpl/protocol/SecretKey.h>
6#include <xrpl/protocol/Seed.h>
7
8namespace xrpl::test {
9
10Account const Account::kMaster{"masterpassphrase"};
11
18
19} // namespace xrpl::test
Account(std::string_view name, KeyType type=KeyType::Secp256k1)
Create an account from a name.
std::pair< PublicKey, SecretKey > keyPair_
static Account const kMaster
The master account that holds all XRP in genesis.
std::string const & name() const noexcept
Return the human-readable name.
Immutable cryptographic account descriptor.
Definition jtx/Account.h:17
KeyType
Definition KeyType.h:8
Seed generateSeed(std::string const &passPhrase)
Generate a seed deterministically.
Definition Seed.cpp:58
std::pair< PublicKey, SecretKey > generateKeyPair(KeyType type, Seed const &seed)
Generate a key pair deterministically.
AccountID calcAccountID(PublicKey const &pk)