mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
Signed-off-by: JCW <a1q123456@users.noreply.github.com> Co-authored-by: xrplf-ai-reviewer[bot] <266832837+xrplf-ai-reviewer[bot]@users.noreply.github.com> Co-authored-by: Copilot <copilot@github.com>
20 lines
452 B
C++
20 lines
452 B
C++
#include <helpers/Account.h>
|
|
|
|
#include <xrpl/protocol/KeyType.h>
|
|
#include <xrpl/protocol/PublicKey.h>
|
|
#include <xrpl/protocol/SecretKey.h>
|
|
#include <xrpl/protocol/Seed.h>
|
|
|
|
namespace xrpl::test {
|
|
|
|
Account const Account::master{"masterpassphrase"};
|
|
|
|
Account::Account(std::string_view name, KeyType type)
|
|
: name_(name)
|
|
, keyPair_(generateKeyPair(type, generateSeed(name_)))
|
|
, id_(calcAccountID(keyPair_.first))
|
|
{
|
|
}
|
|
|
|
} // namespace xrpl::test
|