|
@ -136,90 +136,90 @@ void bitcoin_input__free_unpacked |
|
|
assert(message->base.descriptor == &bitcoin_input__descriptor); |
|
|
assert(message->base.descriptor == &bitcoin_input__descriptor); |
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
|
|
} |
|
|
} |
|
|
void bitcoin_output__init |
|
|
void bitcoin_pubkey__init |
|
|
(BitcoinOutput *message) |
|
|
(BitcoinPubkey *message) |
|
|
{ |
|
|
{ |
|
|
static BitcoinOutput init_value = BITCOIN_OUTPUT__INIT; |
|
|
static BitcoinPubkey init_value = BITCOIN_PUBKEY__INIT; |
|
|
*message = init_value; |
|
|
*message = init_value; |
|
|
} |
|
|
} |
|
|
size_t bitcoin_output__get_packed_size |
|
|
size_t bitcoin_pubkey__get_packed_size |
|
|
(const BitcoinOutput *message) |
|
|
(const BitcoinPubkey *message) |
|
|
{ |
|
|
{ |
|
|
assert(message->base.descriptor == &bitcoin_output__descriptor); |
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor); |
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
|
|
} |
|
|
} |
|
|
size_t bitcoin_output__pack |
|
|
size_t bitcoin_pubkey__pack |
|
|
(const BitcoinOutput *message, |
|
|
(const BitcoinPubkey *message, |
|
|
uint8_t *out) |
|
|
uint8_t *out) |
|
|
{ |
|
|
{ |
|
|
assert(message->base.descriptor == &bitcoin_output__descriptor); |
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor); |
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
|
|
} |
|
|
} |
|
|
size_t bitcoin_output__pack_to_buffer |
|
|
size_t bitcoin_pubkey__pack_to_buffer |
|
|
(const BitcoinOutput *message, |
|
|
(const BitcoinPubkey *message, |
|
|
ProtobufCBuffer *buffer) |
|
|
ProtobufCBuffer *buffer) |
|
|
{ |
|
|
{ |
|
|
assert(message->base.descriptor == &bitcoin_output__descriptor); |
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor); |
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
|
|
} |
|
|
} |
|
|
BitcoinOutput * |
|
|
BitcoinPubkey * |
|
|
bitcoin_output__unpack |
|
|
bitcoin_pubkey__unpack |
|
|
(ProtobufCAllocator *allocator, |
|
|
(ProtobufCAllocator *allocator, |
|
|
size_t len, |
|
|
size_t len, |
|
|
const uint8_t *data) |
|
|
const uint8_t *data) |
|
|
{ |
|
|
{ |
|
|
return (BitcoinOutput *) |
|
|
return (BitcoinPubkey *) |
|
|
protobuf_c_message_unpack (&bitcoin_output__descriptor, |
|
|
protobuf_c_message_unpack (&bitcoin_pubkey__descriptor, |
|
|
allocator, len, data); |
|
|
allocator, len, data); |
|
|
} |
|
|
} |
|
|
void bitcoin_output__free_unpacked |
|
|
void bitcoin_pubkey__free_unpacked |
|
|
(BitcoinOutput *message, |
|
|
(BitcoinPubkey *message, |
|
|
ProtobufCAllocator *allocator) |
|
|
ProtobufCAllocator *allocator) |
|
|
{ |
|
|
{ |
|
|
assert(message->base.descriptor == &bitcoin_output__descriptor); |
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor); |
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
|
|
} |
|
|
} |
|
|
void bitcoin_pubkey__init |
|
|
void change__init |
|
|
(BitcoinPubkey *message) |
|
|
(Change *message) |
|
|
{ |
|
|
{ |
|
|
static BitcoinPubkey init_value = BITCOIN_PUBKEY__INIT; |
|
|
static Change init_value = CHANGE__INIT; |
|
|
*message = init_value; |
|
|
*message = init_value; |
|
|
} |
|
|
} |
|
|
size_t bitcoin_pubkey__get_packed_size |
|
|
size_t change__get_packed_size |
|
|
(const BitcoinPubkey *message) |
|
|
(const Change *message) |
|
|
{ |
|
|
{ |
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor); |
|
|
assert(message->base.descriptor == &change__descriptor); |
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
|
|
} |
|
|
} |
|
|
size_t bitcoin_pubkey__pack |
|
|
size_t change__pack |
|
|
(const BitcoinPubkey *message, |
|
|
(const Change *message, |
|
|
uint8_t *out) |
|
|
uint8_t *out) |
|
|
{ |
|
|
{ |
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor); |
|
|
assert(message->base.descriptor == &change__descriptor); |
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
|
|
} |
|
|
} |
|
|
size_t bitcoin_pubkey__pack_to_buffer |
|
|
size_t change__pack_to_buffer |
|
|
(const BitcoinPubkey *message, |
|
|
(const Change *message, |
|
|
ProtobufCBuffer *buffer) |
|
|
ProtobufCBuffer *buffer) |
|
|
{ |
|
|
{ |
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor); |
|
|
assert(message->base.descriptor == &change__descriptor); |
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
|
|
} |
|
|
} |
|
|
BitcoinPubkey * |
|
|
Change * |
|
|
bitcoin_pubkey__unpack |
|
|
change__unpack |
|
|
(ProtobufCAllocator *allocator, |
|
|
(ProtobufCAllocator *allocator, |
|
|
size_t len, |
|
|
size_t len, |
|
|
const uint8_t *data) |
|
|
const uint8_t *data) |
|
|
{ |
|
|
{ |
|
|
return (BitcoinPubkey *) |
|
|
return (Change *) |
|
|
protobuf_c_message_unpack (&bitcoin_pubkey__descriptor, |
|
|
protobuf_c_message_unpack (&change__descriptor, |
|
|
allocator, len, data); |
|
|
allocator, len, data); |
|
|
} |
|
|
} |
|
|
void bitcoin_pubkey__free_unpacked |
|
|
void change__free_unpacked |
|
|
(BitcoinPubkey *message, |
|
|
(Change *message, |
|
|
ProtobufCAllocator *allocator) |
|
|
ProtobufCAllocator *allocator) |
|
|
{ |
|
|
{ |
|
|
assert(message->base.descriptor == &bitcoin_pubkey__descriptor); |
|
|
assert(message->base.descriptor == &change__descriptor); |
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
|
|
} |
|
|
} |
|
|
void anchor__init |
|
|
void anchor__init |
|
@ -1279,93 +1279,93 @@ const ProtobufCMessageDescriptor bitcoin_input__descriptor = |
|
|
(ProtobufCMessageInit) bitcoin_input__init, |
|
|
(ProtobufCMessageInit) bitcoin_input__init, |
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
}; |
|
|
}; |
|
|
static const ProtobufCFieldDescriptor bitcoin_output__field_descriptors[2] = |
|
|
static const ProtobufCFieldDescriptor bitcoin_pubkey__field_descriptors[1] = |
|
|
{ |
|
|
{ |
|
|
{ |
|
|
{ |
|
|
"amount", |
|
|
"key", |
|
|
1, |
|
|
1, |
|
|
PROTOBUF_C_LABEL_REQUIRED, |
|
|
PROTOBUF_C_LABEL_REQUIRED, |
|
|
PROTOBUF_C_TYPE_UINT64, |
|
|
|
|
|
0, /* quantifier_offset */ |
|
|
|
|
|
offsetof(BitcoinOutput, amount), |
|
|
|
|
|
NULL, |
|
|
|
|
|
NULL, |
|
|
|
|
|
0, /* flags */ |
|
|
|
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"script", |
|
|
|
|
|
2, |
|
|
|
|
|
PROTOBUF_C_LABEL_REQUIRED, |
|
|
|
|
|
PROTOBUF_C_TYPE_BYTES, |
|
|
PROTOBUF_C_TYPE_BYTES, |
|
|
0, /* quantifier_offset */ |
|
|
0, /* quantifier_offset */ |
|
|
offsetof(BitcoinOutput, script), |
|
|
offsetof(BitcoinPubkey, key), |
|
|
NULL, |
|
|
NULL, |
|
|
NULL, |
|
|
NULL, |
|
|
0, /* flags */ |
|
|
0, /* flags */ |
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
static const unsigned bitcoin_output__field_indices_by_name[] = { |
|
|
static const unsigned bitcoin_pubkey__field_indices_by_name[] = { |
|
|
0, /* field[0] = amount */ |
|
|
0, /* field[0] = key */ |
|
|
1, /* field[1] = script */ |
|
|
|
|
|
}; |
|
|
}; |
|
|
static const ProtobufCIntRange bitcoin_output__number_ranges[1 + 1] = |
|
|
static const ProtobufCIntRange bitcoin_pubkey__number_ranges[1 + 1] = |
|
|
{ |
|
|
{ |
|
|
{ 1, 0 }, |
|
|
{ 1, 0 }, |
|
|
{ 0, 2 } |
|
|
{ 0, 1 } |
|
|
}; |
|
|
}; |
|
|
const ProtobufCMessageDescriptor bitcoin_output__descriptor = |
|
|
const ProtobufCMessageDescriptor bitcoin_pubkey__descriptor = |
|
|
{ |
|
|
{ |
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
|
|
"bitcoin_output", |
|
|
"bitcoin_pubkey", |
|
|
"BitcoinOutput", |
|
|
"BitcoinPubkey", |
|
|
"BitcoinOutput", |
|
|
"BitcoinPubkey", |
|
|
"", |
|
|
"", |
|
|
sizeof(BitcoinOutput), |
|
|
sizeof(BitcoinPubkey), |
|
|
2, |
|
|
1, |
|
|
bitcoin_output__field_descriptors, |
|
|
bitcoin_pubkey__field_descriptors, |
|
|
bitcoin_output__field_indices_by_name, |
|
|
bitcoin_pubkey__field_indices_by_name, |
|
|
1, bitcoin_output__number_ranges, |
|
|
1, bitcoin_pubkey__number_ranges, |
|
|
(ProtobufCMessageInit) bitcoin_output__init, |
|
|
(ProtobufCMessageInit) bitcoin_pubkey__init, |
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
}; |
|
|
}; |
|
|
static const ProtobufCFieldDescriptor bitcoin_pubkey__field_descriptors[1] = |
|
|
static const ProtobufCFieldDescriptor change__field_descriptors[2] = |
|
|
{ |
|
|
{ |
|
|
{ |
|
|
{ |
|
|
"key", |
|
|
"amount", |
|
|
1, |
|
|
1, |
|
|
PROTOBUF_C_LABEL_REQUIRED, |
|
|
PROTOBUF_C_LABEL_REQUIRED, |
|
|
PROTOBUF_C_TYPE_BYTES, |
|
|
PROTOBUF_C_TYPE_UINT64, |
|
|
0, /* quantifier_offset */ |
|
|
0, /* quantifier_offset */ |
|
|
offsetof(BitcoinPubkey, key), |
|
|
offsetof(Change, amount), |
|
|
NULL, |
|
|
NULL, |
|
|
NULL, |
|
|
NULL, |
|
|
0, /* flags */ |
|
|
0, /* flags */ |
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"pubkey", |
|
|
|
|
|
2, |
|
|
|
|
|
PROTOBUF_C_LABEL_REQUIRED, |
|
|
|
|
|
PROTOBUF_C_TYPE_MESSAGE, |
|
|
|
|
|
0, /* quantifier_offset */ |
|
|
|
|
|
offsetof(Change, pubkey), |
|
|
|
|
|
&bitcoin_pubkey__descriptor, |
|
|
|
|
|
NULL, |
|
|
|
|
|
0, /* flags */ |
|
|
|
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
|
|
|
}, |
|
|
}; |
|
|
}; |
|
|
static const unsigned bitcoin_pubkey__field_indices_by_name[] = { |
|
|
static const unsigned change__field_indices_by_name[] = { |
|
|
0, /* field[0] = key */ |
|
|
0, /* field[0] = amount */ |
|
|
|
|
|
1, /* field[1] = pubkey */ |
|
|
}; |
|
|
}; |
|
|
static const ProtobufCIntRange bitcoin_pubkey__number_ranges[1 + 1] = |
|
|
static const ProtobufCIntRange change__number_ranges[1 + 1] = |
|
|
{ |
|
|
{ |
|
|
{ 1, 0 }, |
|
|
{ 1, 0 }, |
|
|
{ 0, 1 } |
|
|
{ 0, 2 } |
|
|
}; |
|
|
}; |
|
|
const ProtobufCMessageDescriptor bitcoin_pubkey__descriptor = |
|
|
const ProtobufCMessageDescriptor change__descriptor = |
|
|
{ |
|
|
{ |
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
|
|
"bitcoin_pubkey", |
|
|
"change", |
|
|
"BitcoinPubkey", |
|
|
"Change", |
|
|
"BitcoinPubkey", |
|
|
"Change", |
|
|
"", |
|
|
"", |
|
|
sizeof(BitcoinPubkey), |
|
|
sizeof(Change), |
|
|
1, |
|
|
2, |
|
|
bitcoin_pubkey__field_descriptors, |
|
|
change__field_descriptors, |
|
|
bitcoin_pubkey__field_indices_by_name, |
|
|
change__field_indices_by_name, |
|
|
1, bitcoin_pubkey__number_ranges, |
|
|
1, change__number_ranges, |
|
|
(ProtobufCMessageInit) bitcoin_pubkey__init, |
|
|
(ProtobufCMessageInit) change__init, |
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
}; |
|
|
}; |
|
|
static const ProtobufCFieldDescriptor anchor__field_descriptors[6] = |
|
|
static const ProtobufCFieldDescriptor anchor__field_descriptors[6] = |
|
@ -1389,7 +1389,7 @@ static const ProtobufCFieldDescriptor anchor__field_descriptors[6] = |
|
|
PROTOBUF_C_TYPE_MESSAGE, |
|
|
PROTOBUF_C_TYPE_MESSAGE, |
|
|
0, /* quantifier_offset */ |
|
|
0, /* quantifier_offset */ |
|
|
offsetof(Anchor, change), |
|
|
offsetof(Anchor, change), |
|
|
&bitcoin_output__descriptor, |
|
|
&change__descriptor, |
|
|
NULL, |
|
|
NULL, |
|
|
0, /* flags */ |
|
|
0, /* flags */ |
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|