Skip to content

sgns::crypto::Bip39ProviderImpl

#include <bip39_provider_impl.hpp>

Inherits from sgns::crypto::Bip39Provider

Public Functions

Name
~Bip39ProviderImpl() override =default
Bip39ProviderImpl(std::shared_ptr< Pbkdf2Provider > pbkdf2_provider)
virtual outcome::result< std::vector< uint8_t > > calculateEntropy(const std::vector< std::string > & word_list) override
Calculates entropy from a mnemonic word list.
virtual outcome::result< bip39::Bip39Seed > makeSeed(gsl::span< const uint8_t > entropy, std::string_view password) override
Derives a seed from entropy and an optional password.

Additional inherited members

Public Functions inherited from sgns::crypto::Bip39Provider

Name
virtual ~Bip39Provider() =default

Public Functions Documentation

function ~Bip39ProviderImpl

~Bip39ProviderImpl() override =default

function Bip39ProviderImpl

explicit Bip39ProviderImpl(
    std::shared_ptr< Pbkdf2Provider > pbkdf2_provider
)

function calculateEntropy

virtual outcome::result< std::vector< uint8_t > > calculateEntropy(
    const std::vector< std::string > & word_list
) override

Calculates entropy from a mnemonic word list.

Parameters:

  • word_list Mnemonic words in order.

Return: Entropy value.

Reimplements: sgns::crypto::Bip39Provider::calculateEntropy

function makeSeed

virtual outcome::result< bip39::Bip39Seed > makeSeed(
    gsl::span< const uint8_t > entropy,
    std::string_view password
) override

Derives a seed from entropy and an optional password.

Parameters:

  • entropy Entropy bytes.
  • password Optional passphrase used for seed derivation.

Return: Seed bytes.

Reimplements: sgns::crypto::Bip39Provider::makeSeed


Updated on 2026-03-04 at 13:10:43 -0800