ledger-core
Public Member Functions | Public Attributes | List of all members
ledger::core::api::BitcoinLikeNetworkParameters Struct Referencefinal

#include <BitcoinLikeNetworkParameters.hpp>

Public Member Functions

 BitcoinLikeNetworkParameters (std::string Identifier_, std::vector< uint8_t > P2PKHVersion_, std::vector< uint8_t > P2SHVersion_, std::vector< uint8_t > XPUBVersion_, BitcoinLikeFeePolicy FeePolicy_, int64_t DustAmount_, std::string MessagePrefix_, bool UsesTimestampedTransaction_, int64_t TimestampDelay_, std::vector< uint8_t > SigHash_, std::vector< std::string > AdditionalBIPs_)
 
 BitcoinLikeNetworkParameters (const BitcoinLikeNetworkParameters &cpy)
 
BitcoinLikeNetworkParametersoperator= (const BitcoinLikeNetworkParameters &cpy)
 
template<class Archive >
void load (Archive &archive)
 
template<class Archive >
void save (Archive &archive) const
 

Public Attributes

std::string Identifier
 
std::vector< uint8_t > P2PKHVersion
 
std::vector< uint8_t > P2SHVersion
 
std::vector< uint8_t > XPUBVersion
 
BitcoinLikeFeePolicy FeePolicy
 
int64_t DustAmount
 
std::string MessagePrefix
 
bool UsesTimestampedTransaction
 
int64_t TimestampDelay
 
std::vector< uint8_t > SigHash
 
std::vector< std::string > AdditionalBIPs
 

Detailed Description

Bitcoin network parameters.

Member Data Documentation

◆ AdditionalBIPs

std::vector<std::string> ledger::core::api::BitcoinLikeNetworkParameters::AdditionalBIPs

Addition BIPs enabled for this network.

◆ DustAmount

int64_t ledger::core::api::BitcoinLikeNetworkParameters::DustAmount

Minimal amount a UTXO should have before being considered BTC dust.

◆ FeePolicy

BitcoinLikeFeePolicy ledger::core::api::BitcoinLikeNetworkParameters::FeePolicy

Policy to use when expressing fee amount.

◆ Identifier

std::string ledger::core::api::BitcoinLikeNetworkParameters::Identifier

Name of the network.

◆ MessagePrefix

std::string ledger::core::api::BitcoinLikeNetworkParameters::MessagePrefix

Constant prefix to prepend all signature messages.

◆ P2PKHVersion

std::vector<uint8_t> ledger::core::api::BitcoinLikeNetworkParameters::P2PKHVersion

Version of the Pay To Public Hash standard.

◆ P2SHVersion

std::vector<uint8_t> ledger::core::api::BitcoinLikeNetworkParameters::P2SHVersion

Version of the Pay To Script Hash standard.

◆ SigHash

std::vector<uint8_t> ledger::core::api::BitcoinLikeNetworkParameters::SigHash

Bitcoin signature flag indicating what part of a transaction a signature signs.

◆ TimestampDelay

int64_t ledger::core::api::BitcoinLikeNetworkParameters::TimestampDelay

Delay applied to all timestamps. Used to debounce transactions.

◆ UsesTimestampedTransaction

bool ledger::core::api::BitcoinLikeNetworkParameters::UsesTimestampedTransaction

Are transactions encoded with timestamp?

◆ XPUBVersion

std::vector<uint8_t> ledger::core::api::BitcoinLikeNetworkParameters::XPUBVersion

Version of the Extended Public Key standard.


The documentation for this struct was generated from the following file: