From 93cd0f47cd1f585ab644c86a44cb2e6de74f705c Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 25 Jul 2023 12:51:38 -0400 Subject: [PATCH] update readme to replace mnemonic with seed --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2651cbe..b333f8b 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ A C++ library for creating Monero applications using native bindings to [monero ## Sample code ```c++ -// create a wallet from a mnemonic phrase +// create a wallet from a seed phrase monero_wallet_config wallet_config; -wallet_config.m_mnemonic = "hefty value later extra artistic firm radar yodel talent future fungal nutshell because sanity awesome nail unjustly rage unafraid cedar delayed thumbs comb custom sanity"; +wallet_config.m_seed = "hefty value later extra artistic firm radar yodel talent future fungal nutshell because sanity awesome nail unjustly rage unafraid cedar delayed thumbs comb custom sanity"; wallet_config.m_path = "MyWalletRestored"; wallet_config.m_password = "supersecretpassword123"; wallet_config.m_network_type = monero_network_type::STAGENET; @@ -72,7 +72,7 @@ monero_output_query output_query; output_query.m_is_spent = false; vector> outputs = wallet_restored->get_outputs(output_query); -// create and sync a new wallet with a random mnemonic phrase +// create and sync a new wallet with a random seed phrase wallet_config = monero_wallet_config(); wallet_config.m_path = "MyWalletRandom"; wallet_config.m_password = "supersecretpassword123"; @@ -88,7 +88,7 @@ wallet_random->sync(); wallet_random->start_syncing(5000); // get wallet info -string random_mnemonic = wallet_random->get_mnemonic(); +string random_seed = wallet_random->get_seed(); string random_primary = wallet_random->get_primary_address(); uint64_t random_height = wallet_random->get_height(); bool random_is_synced = wallet_random->is_synced();