ledger-core
Public Member Functions | List of all members
ledger::core::P2SHBitcoinLikeKeychain Class Reference
+ Inheritance diagram for ledger::core::P2SHBitcoinLikeKeychain:
+ Collaboration diagram for ledger::core::P2SHBitcoinLikeKeychain:

Public Member Functions

 P2SHBitcoinLikeKeychain (const std::shared_ptr< api::DynamicObject > &configuration, const api::Currency &params, int account, const std::shared_ptr< api::BitcoinLikeExtendedPublicKey > &xpub, const std::shared_ptr< Preferences > &preferences)
 
int32_t getOutputSizeAsSignedTxInput () const override
 
- Public Member Functions inherited from ledger::core::CommonBitcoinLikeKeychains
 CommonBitcoinLikeKeychains (const std::shared_ptr< api::DynamicObject > &configuration, const api::Currency &params, int account, const std::shared_ptr< api::BitcoinLikeExtendedPublicKey > &xpub, const std::shared_ptr< Preferences > &preferences)
 
bool markPathAsUsed (const DerivationPath &path) override
 
BitcoinLikeKeychain::Address getFreshAddress (KeyPurpose purpose) override
 
std::vector< BitcoinLikeKeychain::Address > getAllObservableAddresses (uint32_t from, uint32_t to) override
 
std::vector< BitcoinLikeKeychain::Address > getFreshAddresses (KeyPurpose purpose, size_t n) override
 
Option< KeyPurpose > getAddressPurpose (const std::string &address) const override
 
Option< std::string > getAddressDerivationPath (const std::string &address) const override
 
std::vector< BitcoinLikeKeychain::Address > getAllObservableAddresses (KeyPurpose purpose, uint32_t from, uint32_t to) override
 
bool isEmpty () const override
 
std::shared_ptr< api::BitcoinLikeExtendedPublicKeygetExtendedPublicKey () const
 
std::string getRestoreKey () const override
 
bool contains (const std::string &address) const override
 
int32_t getObservableRangeSize () const override
 
Option< std::vector< uint8_t > > getPublicKey (const std::string &address) const override
 
- Public Member Functions inherited from ledger::core::BitcoinLikeKeychain
 BitcoinLikeKeychain (const std::shared_ptr< api::DynamicObject > &configuration, const api::Currency &params, int account, const std::shared_ptr< Preferences > &preferences)
 
virtual bool markAsUsed (const std::vector< std::string > &addresses)
 
virtual bool markAsUsed (const std::string &address)
 
int getAccountIndex () const
 
const api::BitcoinLikeNetworkParametersgetNetworkParameters () const
 
const api::CurrencygetCurrency () const
 
std::shared_ptr< api::DynamicObjectgetConfiguration () const
 
const DerivationSchemegetDerivationScheme () const
 
const DerivationSchemegetFullDerivationScheme () const
 
std::string getKeychainEngine () const
 
bool isSegwit () const
 
bool isNativeSegwit () const
 

Additional Inherited Members

- Public Types inherited from ledger::core::BitcoinLikeKeychain
enum  KeyPurpose { RECEIVE, CHANGE }
 
using Address = std::shared_ptr< BitcoinLikeAddress >
 
- Static Public Member Functions inherited from ledger::core::BitcoinLikeKeychain
static bool isSegwit (const std::string &keychainEngine)
 
static bool isNativeSegwit (const std::string &keychainEngine)
 
- Protected Member Functions inherited from ledger::core::BitcoinLikeKeychain
std::shared_ptr< PreferencesgetPreferences () const
 
DerivationSchemegetDerivationScheme ()
 
- Protected Attributes inherited from ledger::core::CommonBitcoinLikeKeychains
std::shared_ptr< api::BitcoinLikeExtendedPublicKey_internalNodeXpub
 
std::shared_ptr< api::BitcoinLikeExtendedPublicKey_publicNodeXpub
 
uint32_t _observableRange
 
std::string _keychainEngine
 

The documentation for this class was generated from the following files: