@@ -37,7 +37,7 @@ class WrappedSignerProviderTests: XCTestCase {
37
37
38
38
let handshakeConfig = ChannelHandshakeConfig . initWithDefault ( )
39
39
handshakeConfig. setMinimumDepth ( val: 1 )
40
- handshakeConfig. setAnnouncedChannel ( val: false )
40
+ // handshakeConfig.setAnnouncedChannel(val: false)
41
41
42
42
let handshakeLimits = ChannelHandshakeLimits . initWithDefault ( )
43
43
handshakeLimits. setForceAnnouncedChannelPreference ( val: false )
@@ -105,10 +105,10 @@ class WrappedSignerProviderTests: XCTestCase {
105
105
print ( " entering wrapper: signGossipMessage() " )
106
106
return myKeysManager!. keysManager. asNodeSigner ( ) . signGossipMessage ( msg: msg)
107
107
}
108
-
109
- override func signInvoice( hrpBytes : [ UInt8 ] , invoiceData : [ UInt8 ] , recipient: Bindings . Recipient ) -> Bindings . Result_RecoverableSignatureNoneZ {
108
+
109
+ override func signInvoice( invoice : Bindings . RawBolt11Invoice , recipient: Bindings . Recipient ) -> Bindings . Result_RecoverableSignatureNoneZ {
110
110
print ( " entering wrapper: signInvoice() " )
111
- return myKeysManager!. keysManager. asNodeSigner ( ) . signInvoice ( hrpBytes : hrpBytes , invoiceData : invoiceData , recipient: recipient)
111
+ return myKeysManager!. keysManager. asNodeSigner ( ) . signInvoice ( invoice : invoice , recipient: recipient)
112
112
}
113
113
}
114
114
@@ -122,17 +122,18 @@ class WrappedSignerProviderTests: XCTestCase {
122
122
123
123
class MySignerProvider : SignerProvider {
124
124
weak var myKeysManager : MyKeysManager ?
125
- override func deriveChannelSigner( channelValueSatoshis: UInt64 , channelKeysId: [ UInt8 ] ) -> Bindings . WriteableEcdsaChannelSigner {
125
+
126
+ override func deriveChannelSigner( channelValueSatoshis: UInt64 , channelKeysId: [ UInt8 ] ) -> Bindings . EcdsaChannelSigner {
126
127
print ( " entering wrapper: deriveChannelSigner() " )
127
- return myKeysManager!. keysManager. asSignerProvider ( ) . deriveChannelSigner ( channelValueSatoshis: channelValueSatoshis, channelKeysId : channelKeysId)
128
+ return myKeysManager!. keysManager. deriveChannelKeys ( channelValueSatoshis: channelValueSatoshis, params : channelKeysId) . asEcdsaChannelSigner ( )
128
129
}
129
130
130
131
override func generateChannelKeysId( inbound: Bool , channelValueSatoshis: UInt64 , userChannelId: [ UInt8 ] ) -> [ UInt8 ] {
131
132
print ( " entering wrapper: generateChannelKeysId() " )
132
133
return myKeysManager!. keysManager. asSignerProvider ( ) . generateChannelKeysId ( inbound: inbound, channelValueSatoshis: channelValueSatoshis, userChannelId: userChannelId)
133
134
}
134
-
135
- override func readChanSigner( reader: [ UInt8 ] ) -> Bindings . Result_WriteableEcdsaChannelSignerDecodeErrorZ {
135
+
136
+ override func readChanSigner( reader: [ UInt8 ] ) -> Bindings . Result_EcdsaChannelSignerDecodeErrorZ {
136
137
print ( " entering wrapper: readChanSigner() " )
137
138
return myKeysManager!. keysManager. asSignerProvider ( ) . readChanSigner ( reader: reader)
138
139
}
0 commit comments