@@ -292,6 +292,7 @@ class BTCSignInitRequest(google.protobuf.message.Message):
292
292
NUM_OUTPUTS_FIELD_NUMBER : builtins .int
293
293
LOCKTIME_FIELD_NUMBER : builtins .int
294
294
FORMAT_UNIT_FIELD_NUMBER : builtins .int
295
+ CONTAINS_SILENT_PAYMENT_OUTPUTS_FIELD_NUMBER : builtins .int
295
296
coin : global___BTCCoin .ValueType
296
297
@property
297
298
def script_configs (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___BTCScriptConfigWithKeypath ]:
@@ -306,6 +307,7 @@ class BTCSignInitRequest(google.protobuf.message.Message):
306
307
"""must be <500000000"""
307
308
308
309
format_unit : global___BTCSignInitRequest .FormatUnit .ValueType
310
+ contains_silent_payment_outputs : builtins .bool
309
311
def __init__ (self ,
310
312
* ,
311
313
coin : global___BTCCoin .ValueType = ...,
@@ -315,8 +317,9 @@ class BTCSignInitRequest(google.protobuf.message.Message):
315
317
num_outputs : builtins .int = ...,
316
318
locktime : builtins .int = ...,
317
319
format_unit : global___BTCSignInitRequest .FormatUnit .ValueType = ...,
320
+ contains_silent_payment_outputs : builtins .bool = ...,
318
321
) -> None : ...
319
- def ClearField (self , field_name : typing_extensions .Literal ["coin" ,b"coin" ,"format_unit" ,b"format_unit" ,"locktime" ,b"locktime" ,"num_inputs" ,b"num_inputs" ,"num_outputs" ,b"num_outputs" ,"script_configs" ,b"script_configs" ,"version" ,b"version" ]) -> None : ...
322
+ def ClearField (self , field_name : typing_extensions .Literal ["coin" ,b"coin" ,"contains_silent_payment_outputs" , b"contains_silent_payment_outputs" , " format_unit" ,b"format_unit" ,"locktime" ,b"locktime" ,"num_inputs" ,b"num_inputs" ,"num_outputs" ,b"num_outputs" ,"script_configs" ,b"script_configs" ,"version" ,b"version" ]) -> None : ...
320
323
global___BTCSignInitRequest = BTCSignInitRequest
321
324
322
325
class BTCSignNextResponse (google .protobuf .message .Message ):
@@ -356,6 +359,8 @@ class BTCSignNextResponse(google.protobuf.message.Message):
356
359
SIGNATURE_FIELD_NUMBER : builtins .int
357
360
PREV_INDEX_FIELD_NUMBER : builtins .int
358
361
ANTI_KLEPTO_SIGNER_COMMITMENT_FIELD_NUMBER : builtins .int
362
+ GENERATED_OUTPUT_PKSCRIPT_FIELD_NUMBER : builtins .int
363
+ SILENT_PAYMENT_DLEQ_PROOF_FIELD_NUMBER : builtins .int
359
364
type : global___BTCSignNextResponse .Type .ValueType
360
365
index : builtins .int
361
366
"""index of the current input or output"""
@@ -371,6 +376,10 @@ class BTCSignNextResponse(google.protobuf.message.Message):
371
376
372
377
@property
373
378
def anti_klepto_signer_commitment (self ) -> antiklepto_pb2 .AntiKleptoSignerCommitment : ...
379
+ generated_output_pkscript : builtins .bytes
380
+ """Generated output. The host *must* verify its correctness using `silent_payment_dleq_proof`."""
381
+
382
+ silent_payment_dleq_proof : builtins .bytes
374
383
def __init__ (self ,
375
384
* ,
376
385
type : global___BTCSignNextResponse .Type .ValueType = ...,
@@ -379,9 +388,11 @@ class BTCSignNextResponse(google.protobuf.message.Message):
379
388
signature : builtins .bytes = ...,
380
389
prev_index : builtins .int = ...,
381
390
anti_klepto_signer_commitment : typing .Optional [antiklepto_pb2 .AntiKleptoSignerCommitment ] = ...,
391
+ generated_output_pkscript : builtins .bytes = ...,
392
+ silent_payment_dleq_proof : builtins .bytes = ...,
382
393
) -> None : ...
383
394
def HasField (self , field_name : typing_extensions .Literal ["anti_klepto_signer_commitment" ,b"anti_klepto_signer_commitment" ]) -> builtins .bool : ...
384
- def ClearField (self , field_name : typing_extensions .Literal ["anti_klepto_signer_commitment" ,b"anti_klepto_signer_commitment" ,"has_signature" ,b"has_signature" ,"index" ,b"index" ,"prev_index" ,b"prev_index" ,"signature" ,b"signature" ,"type" ,b"type" ]) -> None : ...
395
+ def ClearField (self , field_name : typing_extensions .Literal ["anti_klepto_signer_commitment" ,b"anti_klepto_signer_commitment" ,"generated_output_pkscript" , b"generated_output_pkscript" , " has_signature" ,b"has_signature" ,"index" ,b"index" ,"prev_index" ,b"prev_index" ,"signature" ,b"signature" , "silent_payment_dleq_proof" , b"silent_payment_dleq_proof " ,"type" ,b"type" ]) -> None : ...
385
396
global___BTCSignNextResponse = BTCSignNextResponse
386
397
387
398
class BTCSignInputRequest (google .protobuf .message .Message ):
@@ -424,13 +435,25 @@ global___BTCSignInputRequest = BTCSignInputRequest
424
435
425
436
class BTCSignOutputRequest (google .protobuf .message .Message ):
426
437
DESCRIPTOR : google .protobuf .descriptor .Descriptor
438
+ class SilentPayment (google .protobuf .message .Message ):
439
+ """https://github.com/bitcoin/bips/blob/master/bip-0352.mediawiki"""
440
+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
441
+ ADDRESS_FIELD_NUMBER : builtins .int
442
+ address : typing .Text
443
+ def __init__ (self ,
444
+ * ,
445
+ address : typing .Text = ...,
446
+ ) -> None : ...
447
+ def ClearField (self , field_name : typing_extensions .Literal ["address" ,b"address" ]) -> None : ...
448
+
427
449
OURS_FIELD_NUMBER : builtins .int
428
450
TYPE_FIELD_NUMBER : builtins .int
429
451
VALUE_FIELD_NUMBER : builtins .int
430
452
PAYLOAD_FIELD_NUMBER : builtins .int
431
453
KEYPATH_FIELD_NUMBER : builtins .int
432
454
SCRIPT_CONFIG_INDEX_FIELD_NUMBER : builtins .int
433
455
PAYMENT_REQUEST_INDEX_FIELD_NUMBER : builtins .int
456
+ SILENT_PAYMENT_FIELD_NUMBER : builtins .int
434
457
ours : builtins .bool
435
458
type : global___BTCOutputType .ValueType
436
459
"""if ours is false"""
@@ -449,6 +472,12 @@ class BTCSignOutputRequest(google.protobuf.message.Message):
449
472
"""If ours is true. References a script config from BTCSignInitRequest"""
450
473
451
474
payment_request_index : builtins .int
475
+ @property
476
+ def silent_payment (self ) -> global___BTCSignOutputRequest .SilentPayment :
477
+ """If provided, `type` and `payload` is ignored. The generated output pkScript is returned in
478
+ BTCSignNextResponse. `contains_silent_payment_outputs` in the init request must be true.
479
+ """
480
+ pass
452
481
def __init__ (self ,
453
482
* ,
454
483
ours : builtins .bool = ...,
@@ -458,9 +487,10 @@ class BTCSignOutputRequest(google.protobuf.message.Message):
458
487
keypath : typing .Optional [typing .Iterable [builtins .int ]] = ...,
459
488
script_config_index : builtins .int = ...,
460
489
payment_request_index : typing .Optional [builtins .int ] = ...,
490
+ silent_payment : typing .Optional [global___BTCSignOutputRequest .SilentPayment ] = ...,
461
491
) -> None : ...
462
- def HasField (self , field_name : typing_extensions .Literal ["_payment_request_index" ,b"_payment_request_index" ,"payment_request_index" ,b"payment_request_index" ]) -> builtins .bool : ...
463
- def ClearField (self , field_name : typing_extensions .Literal ["_payment_request_index" ,b"_payment_request_index" ,"keypath" ,b"keypath" ,"ours" ,b"ours" ,"payload" ,b"payload" ,"payment_request_index" ,b"payment_request_index" ,"script_config_index" ,b"script_config_index" ,"type" ,b"type" ,"value" ,b"value" ]) -> None : ...
492
+ def HasField (self , field_name : typing_extensions .Literal ["_payment_request_index" ,b"_payment_request_index" ,"payment_request_index" ,b"payment_request_index" , "silent_payment" , b"silent_payment" ]) -> builtins .bool : ...
493
+ def ClearField (self , field_name : typing_extensions .Literal ["_payment_request_index" ,b"_payment_request_index" ,"keypath" ,b"keypath" ,"ours" ,b"ours" ,"payload" ,b"payload" ,"payment_request_index" ,b"payment_request_index" ,"script_config_index" ,b"script_config_index" ,"silent_payment" , b"silent_payment" , " type" ,b"type" ,"value" ,b"value" ]) -> None : ...
464
494
def WhichOneof (self , oneof_group : typing_extensions .Literal ["_payment_request_index" ,b"_payment_request_index" ]) -> typing .Optional [typing_extensions .Literal ["payment_request_index" ]]: ...
465
495
global___BTCSignOutputRequest = BTCSignOutputRequest
466
496
0 commit comments