@@ -44,6 +44,17 @@ struct AdaptorPairStruct {
44
44
std::set<std::string> ignore_items; // !< using on JSON mapping convert.
45
45
};
46
46
47
+ // ------------------------------------------------------------------------
48
+ // MessagesStruct
49
+ // ------------------------------------------------------------------------
50
+ /* *
51
+ * @brief MessagesStruct struct
52
+ */
53
+ struct MessagesStruct {
54
+ std::vector<std::string> messages; // !< messages // NOLINT
55
+ std::set<std::string> ignore_items; // !< using on JSON mapping convert.
56
+ };
57
+
47
58
// ------------------------------------------------------------------------
48
59
// AddSignatureToFundTransactionRequestStruct
49
60
// ------------------------------------------------------------------------
@@ -137,16 +148,16 @@ struct CreateCetResponseStruct {
137
148
* @brief CreateCetAdaptorSignatureRequestStruct struct
138
149
*/
139
150
struct CreateCetAdaptorSignatureRequestStruct {
140
- std::string cet_hex = " " ; // !< cet_hex // NOLINT
141
- std::string privkey = " " ; // !< privkey // NOLINT
142
- std::string fund_tx_id = " " ; // !< fund_tx_id // NOLINT
143
- uint32_t fund_vout = 0 ; // !< fund_vout // NOLINT
144
- std::string local_fund_pubkey = " " ; // !< local_fund_pubkey // NOLINT
145
- std::string remote_fund_pubkey = " " ; // !< remote_fund_pubkey // NOLINT
146
- std::string oracle_pubkey = " " ; // !< oracle_pubkey // NOLINT
147
- std::string oracle_r_value = " " ; // !< oracle_r_value // NOLINT
148
- uint64_t fund_input_amount = 0 ; // !< fund_input_amount // NOLINT
149
- std::string message = " " ; // !< message // NOLINT
151
+ std::string cet_hex = " " ; // !< cet_hex // NOLINT
152
+ std::string privkey = " " ; // !< privkey // NOLINT
153
+ std::string fund_tx_id = " " ; // !< fund_tx_id // NOLINT
154
+ uint32_t fund_vout = 0 ; // !< fund_vout // NOLINT
155
+ std::string local_fund_pubkey = " " ; // !< local_fund_pubkey // NOLINT
156
+ std::string remote_fund_pubkey = " " ; // !< remote_fund_pubkey // NOLINT
157
+ std::string oracle_pubkey = " " ; // !< oracle_pubkey // NOLINT
158
+ std::vector<std:: string> oracle_r_values ; // !< oracle_r_values // NOLINT
159
+ uint64_t fund_input_amount = 0 ; // !< fund_input_amount // NOLINT
160
+ std::vector<std:: string> messages ; // !< messages // NOLINT
150
161
std::set<std::string> ignore_items; // !< using on JSON mapping convert.
151
162
};
152
163
@@ -170,16 +181,16 @@ struct CreateCetAdaptorSignatureResponseStruct {
170
181
* @brief CreateCetAdaptorSignaturesRequestStruct struct
171
182
*/
172
183
struct CreateCetAdaptorSignaturesRequestStruct {
173
- std::vector<std::string> cets_hex; // !< cets_hex // NOLINT
174
- std::string privkey = " " ; // !< privkey // NOLINT
175
- std::string fund_tx_id = " " ; // !< fund_tx_id // NOLINT
176
- uint32_t fund_vout = 0 ; // !< fund_vout // NOLINT
177
- std::string local_fund_pubkey = " " ; // !< local_fund_pubkey // NOLINT
178
- std::string remote_fund_pubkey = " " ; // !< remote_fund_pubkey // NOLINT
179
- std::string oracle_pubkey = " " ; // !< oracle_pubkey // NOLINT
180
- std::string oracle_r_value = " " ; // !< oracle_r_value // NOLINT
181
- uint64_t fund_input_amount = 0 ; // !< fund_input_amount // NOLINT
182
- std::vector<std::string> messages ; // !< messages // NOLINT
184
+ std::vector<std::string> cets_hex; // !< cets_hex // NOLINT
185
+ std::string privkey = " " ; // !< privkey // NOLINT
186
+ std::string fund_tx_id = " " ; // !< fund_tx_id // NOLINT
187
+ uint32_t fund_vout = 0 ; // !< fund_vout // NOLINT
188
+ std::string local_fund_pubkey = " " ; // !< local_fund_pubkey // NOLINT
189
+ std::string remote_fund_pubkey = " " ; // !< remote_fund_pubkey // NOLINT
190
+ std::string oracle_pubkey = " " ; // !< oracle_pubkey // NOLINT
191
+ std::vector<std:: string> oracle_r_values ; // !< oracle_r_values // NOLINT
192
+ uint64_t fund_input_amount = 0 ; // !< fund_input_amount // NOLINT
193
+ std::vector<MessagesStruct> messages_list ; // !< messages_list // NOLINT
183
194
std::set<std::string> ignore_items; // !< using on JSON mapping convert.
184
195
};
185
196
@@ -412,15 +423,15 @@ struct GetRawRefundTxSignatureResponseStruct {
412
423
* @brief SignCetRequestStruct struct
413
424
*/
414
425
struct SignCetRequestStruct {
415
- std::string cet_hex = " " ; // !< cet_hex // NOLINT
416
- std::string fund_privkey = " " ; // !< fund_privkey // NOLINT
417
- std::string fund_tx_id = " " ; // !< fund_tx_id // NOLINT
418
- uint32_t fund_vout = 0 ; // !< fund_vout // NOLINT
419
- std::string local_fund_pubkey = " " ; // !< local_fund_pubkey // NOLINT
420
- std::string remote_fund_pubkey = " " ; // !< remote_fund_pubkey // NOLINT
421
- uint64_t fund_input_amount = 0 ; // !< fund_input_amount // NOLINT
422
- std::string adaptor_signature = " " ; // !< adaptor_signature // NOLINT
423
- std::string oracle_signature = " " ; // !< oracle_signature // NOLINT
426
+ std::string cet_hex = " " ; // !< cet_hex // NOLINT
427
+ std::string fund_privkey = " " ; // !< fund_privkey // NOLINT
428
+ std::string fund_tx_id = " " ; // !< fund_tx_id // NOLINT
429
+ uint32_t fund_vout = 0 ; // !< fund_vout // NOLINT
430
+ std::string local_fund_pubkey = " " ; // !< local_fund_pubkey // NOLINT
431
+ std::string remote_fund_pubkey = " " ; // !< remote_fund_pubkey // NOLINT
432
+ uint64_t fund_input_amount = 0 ; // !< fund_input_amount // NOLINT
433
+ std::string adaptor_signature = " " ; // !< adaptor_signature // NOLINT
434
+ std::vector<std:: string> oracle_signatures ; // !< oracle_signatures // NOLINT
424
435
std::set<std::string> ignore_items; // !< using on JSON mapping convert.
425
436
};
426
437
@@ -470,18 +481,18 @@ struct SignFundTransactionResponseStruct {
470
481
* @brief VerifyCetAdaptorSignatureRequestStruct struct
471
482
*/
472
483
struct VerifyCetAdaptorSignatureRequestStruct {
473
- std::string cet_hex = " " ; // !< cet_hex // NOLINT
474
- std::string adaptor_signature = " " ; // !< adaptor_signature // NOLINT
475
- std::string adaptor_proof = " " ; // !< adaptor_proof // NOLINT
476
- std::string message = " " ; // !< message // NOLINT
477
- std::string local_fund_pubkey = " " ; // !< local_fund_pubkey // NOLINT
478
- std::string remote_fund_pubkey = " " ; // !< remote_fund_pubkey // NOLINT
479
- std::string oracle_pubkey = " " ; // !< oracle_pubkey // NOLINT
480
- std::string oracle_r_value = " " ; // !< oracle_r_value // NOLINT
481
- std::string fund_tx_id = " " ; // !< fund_tx_id // NOLINT
482
- uint32_t fund_vout = 0 ; // !< fund_vout // NOLINT
483
- uint64_t fund_input_amount = 0 ; // !< fund_input_amount // NOLINT
484
- bool verify_remote = true ; // !< verify_remote // NOLINT
484
+ std::string cet_hex = " " ; // !< cet_hex // NOLINT
485
+ std::string adaptor_signature = " " ; // !< adaptor_signature // NOLINT
486
+ std::string adaptor_proof = " " ; // !< adaptor_proof // NOLINT
487
+ std::vector<std:: string> messages ; // !< messages // NOLINT
488
+ std::string local_fund_pubkey = " " ; // !< local_fund_pubkey // NOLINT
489
+ std::string remote_fund_pubkey = " " ; // !< remote_fund_pubkey // NOLINT
490
+ std::string oracle_pubkey = " " ; // !< oracle_pubkey // NOLINT
491
+ std::vector<std:: string> oracle_r_values ; // !< oracle_r_values // NOLINT
492
+ std::string fund_tx_id = " " ; // !< fund_tx_id // NOLINT
493
+ uint32_t fund_vout = 0 ; // !< fund_vout // NOLINT
494
+ uint64_t fund_input_amount = 0 ; // !< fund_input_amount // NOLINT
495
+ bool verify_remote = true ; // !< verify_remote // NOLINT
485
496
std::set<std::string> ignore_items; // !< using on JSON mapping convert.
486
497
};
487
498
@@ -506,11 +517,11 @@ struct VerifyCetAdaptorSignatureResponseStruct {
506
517
struct VerifyCetAdaptorSignaturesRequestStruct {
507
518
std::vector<std::string> cets_hex; // !< cets_hex // NOLINT
508
519
std::vector<AdaptorPairStruct> adaptor_pairs; // !< adaptor_pairs // NOLINT
509
- std::vector<std::string> messages ; // !< messages // NOLINT
520
+ std::vector<MessagesStruct> messages_list ; // !< messages_list // NOLINT
510
521
std::string local_fund_pubkey = " " ; // !< local_fund_pubkey // NOLINT
511
522
std::string remote_fund_pubkey = " " ; // !< remote_fund_pubkey // NOLINT
512
523
std::string oracle_pubkey = " " ; // !< oracle_pubkey // NOLINT
513
- std::string oracle_r_value = " " ; // !< oracle_r_value // NOLINT
524
+ std::vector<std:: string> oracle_r_values ; // !< oracle_r_values // NOLINT
514
525
std::string fund_tx_id = " " ; // !< fund_tx_id // NOLINT
515
526
uint32_t fund_vout = 0 ; // !< fund_vout // NOLINT
516
527
uint64_t fund_input_amount = 0 ; // !< fund_input_amount // NOLINT
0 commit comments