|
61 | 61 | } |
62 | 62 |
|
63 | 63 | /// Authentication of the announcement by the first public node |
64 | | - public func getNodeSignature_1() -> [UInt8] { |
| 64 | + public func getNodeSignature1() -> [UInt8] { |
65 | 65 | // native call variable prep |
66 | 66 |
|
67 | 67 |
|
|
84 | 84 | } |
85 | 85 |
|
86 | 86 | /// Authentication of the announcement by the first public node |
87 | | - public func setNodeSignature_1(val: [UInt8]) { |
| 87 | + public func setNodeSignature1(val: [UInt8]) { |
88 | 88 | // native call variable prep |
89 | 89 |
|
90 | 90 | let valPrimitiveWrapper = Signature(value: val) |
|
112 | 112 | } |
113 | 113 |
|
114 | 114 | /// Authentication of the announcement by the second public node |
115 | | - public func getNodeSignature_2() -> [UInt8] { |
| 115 | + public func getNodeSignature2() -> [UInt8] { |
116 | 116 | // native call variable prep |
117 | 117 |
|
118 | 118 |
|
|
135 | 135 | } |
136 | 136 |
|
137 | 137 | /// Authentication of the announcement by the second public node |
138 | | - public func setNodeSignature_2(val: [UInt8]) { |
| 138 | + public func setNodeSignature2(val: [UInt8]) { |
139 | 139 | // native call variable prep |
140 | 140 |
|
141 | 141 | let valPrimitiveWrapper = Signature(value: val) |
|
163 | 163 | } |
164 | 164 |
|
165 | 165 | /// Proof of funding UTXO ownership by the first public node |
166 | | - public func getBitcoinSignature_1() -> [UInt8] { |
| 166 | + public func getBitcoinSignature1() -> [UInt8] { |
167 | 167 | // native call variable prep |
168 | 168 |
|
169 | 169 |
|
|
186 | 186 | } |
187 | 187 |
|
188 | 188 | /// Proof of funding UTXO ownership by the first public node |
189 | | - public func setBitcoinSignature_1(val: [UInt8]) { |
| 189 | + public func setBitcoinSignature1(val: [UInt8]) { |
190 | 190 | // native call variable prep |
191 | 191 |
|
192 | 192 | let valPrimitiveWrapper = Signature(value: val) |
|
214 | 214 | } |
215 | 215 |
|
216 | 216 | /// Proof of funding UTXO ownership by the second public node |
217 | | - public func getBitcoinSignature_2() -> [UInt8] { |
| 217 | + public func getBitcoinSignature2() -> [UInt8] { |
218 | 218 | // native call variable prep |
219 | 219 |
|
220 | 220 |
|
|
237 | 237 | } |
238 | 238 |
|
239 | 239 | /// Proof of funding UTXO ownership by the second public node |
240 | | - public func setBitcoinSignature_2(val: [UInt8]) { |
| 240 | + public func setBitcoinSignature2(val: [UInt8]) { |
241 | 241 | // native call variable prep |
242 | 242 |
|
243 | 243 | let valPrimitiveWrapper = Signature(value: val) |
|
311 | 311 | } |
312 | 312 |
|
313 | 313 | /// Constructs a new ChannelAnnouncement given each field |
314 | | - public init(nodeSignature_1Arg: [UInt8], nodeSignature_2Arg: [UInt8], bitcoinSignature_1Arg: [UInt8], bitcoinSignature_2Arg: [UInt8], contentsArg: UnsignedChannelAnnouncement) { |
| 314 | + public init(nodeSignature1Arg: [UInt8], nodeSignature2Arg: [UInt8], bitcoinSignature1Arg: [UInt8], bitcoinSignature2Arg: [UInt8], contentsArg: UnsignedChannelAnnouncement) { |
315 | 315 | // native call variable prep |
316 | 316 |
|
317 | | - let nodeSignature_1ArgPrimitiveWrapper = Signature(value: nodeSignature_1Arg) |
| 317 | + let nodeSignature1ArgPrimitiveWrapper = Signature(value: nodeSignature1Arg) |
318 | 318 |
|
319 | | - let nodeSignature_2ArgPrimitiveWrapper = Signature(value: nodeSignature_2Arg) |
| 319 | + let nodeSignature2ArgPrimitiveWrapper = Signature(value: nodeSignature2Arg) |
320 | 320 |
|
321 | | - let bitcoinSignature_1ArgPrimitiveWrapper = Signature(value: bitcoinSignature_1Arg) |
| 321 | + let bitcoinSignature1ArgPrimitiveWrapper = Signature(value: bitcoinSignature1Arg) |
322 | 322 |
|
323 | | - let bitcoinSignature_2ArgPrimitiveWrapper = Signature(value: bitcoinSignature_2Arg) |
| 323 | + let bitcoinSignature2ArgPrimitiveWrapper = Signature(value: bitcoinSignature2Arg) |
324 | 324 |
|
325 | 325 |
|
326 | 326 | // native method call |
327 | | - let nativeCallResult = ChannelAnnouncement_new(nodeSignature_1ArgPrimitiveWrapper.cType!, nodeSignature_2ArgPrimitiveWrapper.cType!, bitcoinSignature_1ArgPrimitiveWrapper.cType!, bitcoinSignature_2ArgPrimitiveWrapper.cType!, contentsArg.dynamicallyDangledClone().cType!) |
| 327 | + let nativeCallResult = ChannelAnnouncement_new(nodeSignature1ArgPrimitiveWrapper.cType!, nodeSignature2ArgPrimitiveWrapper.cType!, bitcoinSignature1ArgPrimitiveWrapper.cType!, bitcoinSignature2ArgPrimitiveWrapper.cType!, contentsArg.dynamicallyDangledClone().cType!) |
328 | 328 |
|
329 | 329 | // cleanup |
330 | 330 |
|
331 | 331 | // for elided types, we need this |
332 | | - nodeSignature_1ArgPrimitiveWrapper.noOpRetain() |
| 332 | + nodeSignature1ArgPrimitiveWrapper.noOpRetain() |
333 | 333 |
|
334 | 334 | // for elided types, we need this |
335 | | - nodeSignature_2ArgPrimitiveWrapper.noOpRetain() |
| 335 | + nodeSignature2ArgPrimitiveWrapper.noOpRetain() |
336 | 336 |
|
337 | 337 | // for elided types, we need this |
338 | | - bitcoinSignature_1ArgPrimitiveWrapper.noOpRetain() |
| 338 | + bitcoinSignature1ArgPrimitiveWrapper.noOpRetain() |
339 | 339 |
|
340 | 340 | // for elided types, we need this |
341 | | - bitcoinSignature_2ArgPrimitiveWrapper.noOpRetain() |
| 341 | + bitcoinSignature2ArgPrimitiveWrapper.noOpRetain() |
342 | 342 |
|
343 | 343 | self.initialCFreeability = nativeCallResult.is_owned |
344 | 344 |
|
|
0 commit comments