|
|
|
@ -75,6 +75,10 @@ typedef struct _CoinType {
|
|
|
|
|
uint64_t maxfee_kb;
|
|
|
|
|
bool has_address_type_p2sh;
|
|
|
|
|
uint32_t address_type_p2sh;
|
|
|
|
|
bool has_address_type_p2wpkh;
|
|
|
|
|
uint32_t address_type_p2wpkh;
|
|
|
|
|
bool has_address_type_p2wsh;
|
|
|
|
|
uint32_t address_type_p2wsh;
|
|
|
|
|
} CoinType;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
@ -248,6 +252,8 @@ extern const pb_extension_type_t wire_debug_out;
|
|
|
|
|
/* Default values for struct fields */
|
|
|
|
|
extern const uint32_t CoinType_address_type_default;
|
|
|
|
|
extern const uint32_t CoinType_address_type_p2sh_default;
|
|
|
|
|
extern const uint32_t CoinType_address_type_p2wpkh_default;
|
|
|
|
|
extern const uint32_t CoinType_address_type_p2wsh_default;
|
|
|
|
|
extern const uint32_t TxInputType_sequence_default;
|
|
|
|
|
extern const InputScriptType TxInputType_script_type_default;
|
|
|
|
|
extern const uint32_t IdentityType_index_default;
|
|
|
|
@ -255,7 +261,7 @@ extern const uint32_t IdentityType_index_default;
|
|
|
|
|
/* Initializer values for message structs */
|
|
|
|
|
#define HDNodeType_init_default {0, 0, 0, {0, {0}}, false, {0, {0}}, false, {0, {0}}}
|
|
|
|
|
#define HDNodePathType_init_default {HDNodeType_init_default, 0, {0, 0, 0, 0, 0, 0, 0, 0}}
|
|
|
|
|
#define CoinType_init_default {false, "", false, "", false, 0u, false, 0, false, 5u}
|
|
|
|
|
#define CoinType_init_default {false, "", false, "", false, 0u, false, 0, false, 5u, false, 6u, false, 10u}
|
|
|
|
|
#define MultisigRedeemScriptType_init_default {0, {HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default, HDNodePathType_init_default}, 0, {{0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}}, false, 0}
|
|
|
|
|
#define TxInputType_init_default {0, {0, 0, 0, 0, 0, 0, 0, 0}, {0, {0}}, 0, false, {0, {0}}, false, 4294967295u, false, InputScriptType_SPENDADDRESS, false, MultisigRedeemScriptType_init_default}
|
|
|
|
|
#define TxOutputType_init_default {false, "", 0, {0, 0, 0, 0, 0, 0, 0, 0}, 0, (OutputScriptType)0, false, MultisigRedeemScriptType_init_default, false, {0, {0}}}
|
|
|
|
@ -266,7 +272,7 @@ extern const uint32_t IdentityType_index_default;
|
|
|
|
|
#define IdentityType_init_default {false, "", false, "", false, "", false, "", false, "", false, 0u}
|
|
|
|
|
#define HDNodeType_init_zero {0, 0, 0, {0, {0}}, false, {0, {0}}, false, {0, {0}}}
|
|
|
|
|
#define HDNodePathType_init_zero {HDNodeType_init_zero, 0, {0, 0, 0, 0, 0, 0, 0, 0}}
|
|
|
|
|
#define CoinType_init_zero {false, "", false, "", false, 0, false, 0, false, 0}
|
|
|
|
|
#define CoinType_init_zero {false, "", false, "", false, 0, false, 0, false, 0, false, 0, false, 0}
|
|
|
|
|
#define MultisigRedeemScriptType_init_zero {0, {HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero, HDNodePathType_init_zero}, 0, {{0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}}, false, 0}
|
|
|
|
|
#define TxInputType_init_zero {0, {0, 0, 0, 0, 0, 0, 0, 0}, {0, {0}}, 0, false, {0, {0}}, false, 0, false, (InputScriptType)0, false, MultisigRedeemScriptType_init_zero}
|
|
|
|
|
#define TxOutputType_init_zero {false, "", 0, {0, 0, 0, 0, 0, 0, 0, 0}, 0, (OutputScriptType)0, false, MultisigRedeemScriptType_init_zero, false, {0, {0}}}
|
|
|
|
@ -282,6 +288,8 @@ extern const uint32_t IdentityType_index_default;
|
|
|
|
|
#define CoinType_address_type_tag 3
|
|
|
|
|
#define CoinType_maxfee_kb_tag 4
|
|
|
|
|
#define CoinType_address_type_p2sh_tag 5
|
|
|
|
|
#define CoinType_address_type_p2wpkh_tag 6
|
|
|
|
|
#define CoinType_address_type_p2wsh_tag 7
|
|
|
|
|
#define HDNodeType_depth_tag 1
|
|
|
|
|
#define HDNodeType_fingerprint_tag 2
|
|
|
|
|
#define HDNodeType_child_num_tag 3
|
|
|
|
@ -334,7 +342,7 @@ extern const uint32_t IdentityType_index_default;
|
|
|
|
|
/* Struct field encoding specification for nanopb */
|
|
|
|
|
extern const pb_field_t HDNodeType_fields[7];
|
|
|
|
|
extern const pb_field_t HDNodePathType_fields[3];
|
|
|
|
|
extern const pb_field_t CoinType_fields[6];
|
|
|
|
|
extern const pb_field_t CoinType_fields[8];
|
|
|
|
|
extern const pb_field_t MultisigRedeemScriptType_fields[4];
|
|
|
|
|
extern const pb_field_t TxInputType_fields[8];
|
|
|
|
|
extern const pb_field_t TxOutputType_fields[7];
|
|
|
|
@ -347,7 +355,7 @@ extern const pb_field_t IdentityType_fields[7];
|
|
|
|
|
/* Maximum encoded size of messages (where known) */
|
|
|
|
|
#define HDNodeType_size 121
|
|
|
|
|
#define HDNodePathType_size 171
|
|
|
|
|
#define CoinType_size 53
|
|
|
|
|
#define CoinType_size 65
|
|
|
|
|
#define MultisigRedeemScriptType_size 3741
|
|
|
|
|
#define TxInputType_size 5497
|
|
|
|
|
#define TxOutputType_size 3929
|
|
|
|
|