|
xrpld
|
A test account with cryptographic keys. More...
#include <Account.h>

Public Member Functions | |
| Account (std::string_view name, KeyType type=KeyType::Secp256k1) | |
| Create an account from a name. | |
| std::string const & | name () const noexcept |
| Return the human-readable name. | |
| AccountID const & | id () const noexcept |
| Return the AccountID. | |
| PublicKey const & | pk () const noexcept |
| Return the public key. | |
| SecretKey const & | sk () const noexcept |
| Return the secret key. | |
| operator AccountID const & () const noexcept | |
| Implicit conversion to AccountID. | |
Static Public Attributes | |
| static Account const | kMaster |
| The master account that holds all XRP in genesis. | |
Private Attributes | |
| std::string | name_ |
| std::pair< PublicKey, SecretKey > | keyPair_ |
| AccountID | id_ |
A test account with cryptographic keys.
Generates keys deterministically from a name, making tests reproducible. The same name always produces the same AccountID and keys.
Definition at line 20 of file /libxrpl/helpers/Account.h.
|
explicit |
Create an account from a name.
Keys are derived deterministically from the name.
| name | Human-readable name for the account. |
| type | Key type to use (defaults to secp256k1). |
Definition at line 12 of file /libxrpl/helpers/Account.cpp.
|
nodiscardnoexcept |
Return the human-readable name.
Definition at line 43 of file /libxrpl/helpers/Account.h.
|
nodiscardnoexcept |
Return the AccountID.
Definition at line 50 of file /libxrpl/helpers/Account.h.
|
nodiscardnoexcept |
Return the public key.
Definition at line 57 of file /libxrpl/helpers/Account.h.
|
nodiscardnoexcept |
Return the secret key.
Definition at line 64 of file /libxrpl/helpers/Account.h.
|
noexcept |
Implicit conversion to AccountID.
Definition at line 70 of file /libxrpl/helpers/Account.h.
|
static |
The master account that holds all XRP in genesis.
This account is created in the genesis ledger with all 100 billion XRP. It uses the well-known seed "masterpassphrase".
Definition at line 29 of file /libxrpl/helpers/Account.h.
|
private |
Definition at line 76 of file /libxrpl/helpers/Account.h.
Definition at line 77 of file /libxrpl/helpers/Account.h.
|
private |
Definition at line 78 of file /libxrpl/helpers/Account.h.