Skip to content
Permalink
Browse files

CoinQ: added CoinParams::privkey_version()

  • Loading branch information...
CodeShark committed Dec 21, 2017
1 parent 4c13bf0 commit b79c55e1f3848fd9986610032609085923dbf59a
Showing with 10 additions and 1 deletion.
  1. +6 −1 deps/CoinQ/src/CoinQ_coinparams.cpp
  2. +4 −0 deps/CoinQ/src/CoinQ_coinparams.h
@@ -74,7 +74,8 @@ const CoinParams bitcoinParams(
5,
5,
4,
10,
10,
128,
"Bitcoin",
"bitcoin",
100000000,
@@ -104,6 +105,7 @@ const CoinParams testnet3Params(
0xc4,
6,
40,
239,
"Testnet3",
"testnet3",
100000000,
@@ -133,6 +135,7 @@ const CoinParams litecoinParams(
5,
4,
10,
176,
"Litecoin",
"litecoin",
100000000,
@@ -162,6 +165,7 @@ const CoinParams ltcTestnet4Params(
196,
4,
10,
239,
"LtcTestnet4",
"ltctestnet4",
100000000,
@@ -190,6 +194,7 @@ const CoinParams quarkcoinParams(
0x09,
4,
10,
128,
"Quarkcoin",
"quarkcoin",
100000,
@@ -34,6 +34,7 @@ class CoinParams
uint8_t old_pay_to_script_hash_version,
uint8_t pay_to_witness_pubkey_hash_version,
uint8_t pay_to_witness_script_hash_version,
uint8_t privkey_version,
const char* network_name,
const char* url_prefix,
uint64_t currency_divisor,
@@ -52,6 +53,7 @@ class CoinParams
old_pay_to_script_hash_version_(old_pay_to_script_hash_version),
pay_to_witness_pubkey_hash_version_(pay_to_witness_pubkey_hash_version),
pay_to_witness_script_hash_version_(pay_to_witness_script_hash_version),
privkey_version_(privkey_version),
network_name_(network_name),
url_prefix_(url_prefix),
currency_divisor_(currency_divisor),
@@ -83,6 +85,7 @@ class CoinParams
uint8_t old_pay_to_script_hash_version() const { return old_pay_to_script_hash_version_; }
uint8_t pay_to_witness_pubkey_hash_version() const { return pay_to_witness_pubkey_hash_version_; }
uint8_t pay_to_witness_script_hash_version() const { return pay_to_witness_script_hash_version_; }
uint8_t privkey_version() const { return privkey_version_; }
const unsigned char* address_versions() const { return address_versions_; }
const char* network_name() const { return network_name_; }
const char* url_prefix() const { return url_prefix_; }
@@ -105,6 +108,7 @@ class CoinParams
uint8_t old_pay_to_script_hash_version_;
uint8_t pay_to_witness_pubkey_hash_version_;
uint8_t pay_to_witness_script_hash_version_;
uint8_t privkey_version_;
unsigned char address_versions_[2];
const char* network_name_;
const char* url_prefix_;

0 comments on commit b79c55e

Please sign in to comment.
You can’t perform that action at this time.