@@ -7,39 +7,39 @@ open class BaseSign {
7
7
/* NATIVE_CALLBACKS_START */
8
8
9
9
func get_per_commitment_pointCallback( pointer: UnsafeRawPointer ? , idx: UInt64 ) -> LDKPublicKey {
10
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
10
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::get_per_commitment_point " )
11
11
12
12
return Bindings . new_LDKPublicKey ( array: instance. get_per_commitment_point ( idx: idx) ) ;
13
13
}
14
14
15
15
func release_commitment_secretCallback( pointer: UnsafeRawPointer ? , idx: UInt64 ) -> LDKThirtyTwoBytes {
16
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
16
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::release_commitment_secret " )
17
17
18
18
return Bindings . new_LDKThirtyTwoBytes ( array: instance. release_commitment_secret ( idx: idx) ) ;
19
19
}
20
20
21
21
func channel_keys_idCallback( pointer: UnsafeRawPointer ? ) -> LDKThirtyTwoBytes {
22
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
22
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::channel_keys_id " )
23
23
24
24
return Bindings . new_LDKThirtyTwoBytes ( array: instance. channel_keys_id ( ) ) ;
25
25
}
26
26
27
27
func sign_counterparty_commitmentCallback( pointer: UnsafeRawPointer ? , commitment_txPointer: UnsafePointer < LDKCommitmentTransaction > ) -> LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ {
28
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
28
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::sign_counterparty_commitment " )
29
29
let commitment_tx = CommitmentTransaction ( pointer: commitment_txPointer. pointee) ;
30
30
31
31
return instance. sign_counterparty_commitment ( commitment_tx: commitment_tx) . cOpaqueStruct!;
32
32
}
33
33
34
34
func sign_holder_commitment_and_htlcsCallback( pointer: UnsafeRawPointer ? , commitment_txPointer: UnsafePointer < LDKHolderCommitmentTransaction > ) -> LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ {
35
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
35
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::sign_holder_commitment_and_htlcs " )
36
36
let commitment_tx = HolderCommitmentTransaction ( pointer: commitment_txPointer. pointee) ;
37
37
38
38
return instance. sign_holder_commitment_and_htlcs ( commitment_tx: commitment_tx) . cOpaqueStruct!;
39
39
}
40
40
41
41
func sign_justice_revoked_outputCallback( pointer: UnsafeRawPointer ? , justice_tx: LDKTransaction , input: uintptr_t , amount: UInt64 , per_commitment_keyPointer: UnsafePointer < ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) > ? ) -> LDKCResult_SignatureNoneZ {
42
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
42
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::sign_justice_revoked_output " )
43
43
44
44
var per_commitment_key : [ UInt8 ] ? = nil
45
45
if let per_commitment_keyUnwrapped = per_commitment_keyPointer {
@@ -50,7 +50,7 @@ open class BaseSign {
50
50
}
51
51
52
52
func sign_justice_revoked_htlcCallback( pointer: UnsafeRawPointer ? , justice_tx: LDKTransaction , input: uintptr_t , amount: UInt64 , per_commitment_keyPointer: UnsafePointer < ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) > ? , htlcPointer: UnsafePointer < LDKHTLCOutputInCommitment > ) -> LDKCResult_SignatureNoneZ {
53
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
53
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::sign_justice_revoked_htlc " )
54
54
55
55
var per_commitment_key : [ UInt8 ] ? = nil
56
56
if let per_commitment_keyUnwrapped = per_commitment_keyPointer {
@@ -62,34 +62,34 @@ open class BaseSign {
62
62
}
63
63
64
64
func sign_counterparty_htlc_transactionCallback( pointer: UnsafeRawPointer ? , htlc_tx: LDKTransaction , input: uintptr_t , amount: UInt64 , per_commitment_point: LDKPublicKey , htlcPointer: UnsafePointer < LDKHTLCOutputInCommitment > ) -> LDKCResult_SignatureNoneZ {
65
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
65
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::sign_counterparty_htlc_transaction " )
66
66
let htlc = HTLCOutputInCommitment ( pointer: htlcPointer. pointee) ;
67
67
68
68
return instance. sign_counterparty_htlc_transaction ( htlc_tx: Bindings . LDKTransaction_to_array ( nativeType: htlc_tx) , input: input, amount: amount, per_commitment_point: Bindings . tuple33_to_array ( nativeType: per_commitment_point. compressed_form) , htlc: htlc) . cOpaqueStruct!;
69
69
}
70
70
71
71
func sign_closing_transactionCallback( pointer: UnsafeRawPointer ? , closing_tx: LDKTransaction ) -> LDKCResult_SignatureNoneZ {
72
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
72
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::sign_closing_transaction " )
73
73
74
74
return instance. sign_closing_transaction ( closing_tx: Bindings . LDKTransaction_to_array ( nativeType: closing_tx) ) . cOpaqueStruct!;
75
75
}
76
76
77
77
func sign_channel_announcementCallback( pointer: UnsafeRawPointer ? , msgPointer: UnsafePointer < LDKUnsignedChannelAnnouncement > ) -> LDKCResult_SignatureNoneZ {
78
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
78
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::sign_channel_announcement " )
79
79
let msg = UnsignedChannelAnnouncement ( pointer: msgPointer. pointee) ;
80
80
81
81
return instance. sign_channel_announcement ( msg: msg) . cOpaqueStruct!;
82
82
}
83
83
84
84
func ready_channelCallback( pointer: UnsafeMutableRawPointer ? , channel_parametersPointer: UnsafePointer < LDKChannelTransactionParameters > ) -> Void {
85
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
85
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::ready_channel " )
86
86
let channel_parameters = ChannelTransactionParameters ( pointer: channel_parametersPointer. pointee) ;
87
87
88
88
return instance. ready_channel ( channel_parameters: channel_parameters) ;
89
89
}
90
90
91
91
func freeCallback( pointer: UnsafeMutableRawPointer ? ) -> Void {
92
- let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!)
92
+ let instance : BaseSign = Bindings . pointerToInstance ( pointer: pointer!, sourceMarker : " BaseSign.swift::free " )
93
93
94
94
return instance. free ( ) ;
95
95
}
0 commit comments