|
const WipeableString | phrase (const SeedLanguage &language, const std::string &passphrase="") const override |
| Generates the seed phrase in a specified language.
|
|
const SeedIndices | indices (const std::string &passphrase="") const override |
| Gets the raw numeric values representing the seed (indices)
|
|
virtual | ~Seed ()=default |
| Virtual destructor to ensure proper cleanup of derived classes.
|
|
virtual const std::string & | fingerprint () const noexcept |
| Provides a unique fingerprint for the seed.
|
|
virtual const Address & | address () const noexcept |
| Address of the seed.
|
|
virtual const uint64_t | timestamp () const noexcept |
| Gets the seed's creation timestamp.
|
|
virtual const uint64_t | height () const noexcept |
| Gets the blockchain height associated with the seed.
|
|
virtual const Network & | network () const noexcept |
| Gets the network associated with the seed.
|
|
virtual std::shared_ptr< Wallet > | wallet () noexcept |
| Creates a wallet from the seed.
|
|
| Seed (const Seed &)=delete |
|
Seed & | operator= (const Seed &)=delete |
|
| Seed (Seed &&) noexcept=default |
|
Seed & | operator= (Seed &&) noexcept=default |
|
|
static MoneroSeed | decode (const std::string &phrase, uint64_t height=0, uint64_t time=0, Network network=Network::MAIN, const std::string &passphrase="") |
| Decodes a Monero seed from a phrase.
|
|
static MoneroSeed | decode (const SeedIndices &indices, uint64_t height=0, uint64_t time=0, Network network=Network::MAIN, const std::string &passphrase="") |
| Decodes a Monero seed from numeric values.
|
|
static MoneroSeed | decode (const std::vector< uint16_t > &values, uint64_t height=0, uint64_t time=0, Network network=Network::MAIN, const std::string &password="") |
| Decodes a Monero seed from numeric values.
|
|
static MoneroSeed | create (const std::array< unsigned char, 32 > &random, uint64_t height=0, uint64_t time=0, const Network network=Network::MAIN) |
| Creates a Monero seed from a random source.
|
|
static MoneroSeed | generate (uint64_t height=0, uint64_t time=0, const Network network=Network::MAIN) |
| Generates a new Monero seed.
|
|
static std::vector< uint16_t > | mergeValues (const std::vector< uint16_t > &values1, const std::vector< uint16_t > &values2) |
| Merges two seed values, so you can join multiple SeedQRs to one seed.
|
|
static std::vector< uint16_t > | mergeValues (const std::vector< std::vector< uint16_t > > &values) |
| Merges multiple seed values, so you can join multiple SeedQRs to one seed.
|
|
static std::vector< uint16_t > | mergeAndZeorizeValues (std::vector< uint16_t > &values1, std::vector< uint16_t > &values2, bool del=true) |
| Merges two seed values, so you can join multiple SeedQRs to one seed.
|
|
static std::vector< uint16_t > | mergeAndZeorizeValues (std::vector< std::vector< uint16_t > > &values, bool del=true) |
| Merges multiple seed values, so you can join multiple SeedQRs to one seed.
|
|
static std::vector< uint16_t > | mergeWithPassword (const std::string &password, const std::vector< uint16_t > &values) |
| Merge password with seed values.
|
|
static std::vector< uint16_t > | mergeWithPasswordAndZeorize (std::string &password, std::vector< uint16_t > &values, bool del=true) |
| Merge password with seed values and zeroize password.
|
|
static std::vector< uint16_t > | mergeWithPassword (const WipeableString &password, const std::vector< uint16_t > &values) |
| Merge password with seed values.
|
|
static std::vector< uint16_t > | mergeWithPasswordAndZeorize (const WipeableString &password, std::vector< uint16_t > &values, bool del=true) |
| Merge password with seed values and zeroize values.
|
|
Represents a Monero 25-words seed.
- Note
- if you provide to the user seed offset by passphrase I suggest asking the user for the fingerprint of the seed and compare it with the fingerprint of the Seed if not it doesn't match the passphrase is wrong.
Provides Monero seed generation and decoding