@@ -83,7 +83,7 @@ extension SECP256K1 {
8383 return serializedKey
8484 }
8585
86- internal static func recoverPublicKey( hash: Data , recoverableSignature: input secp256 k1 _ecdsa_recoverable_signature) -> secp256k1_pubkey ? {
86+ internal static func recoverPublicKey( hash: Data , recoverableSignature: inout secp256k1_ecdsa_recoverable_signature ) -> secp256k1_pubkey ? {
8787 guard let context = context, hash. count == 32 else { return nil }
8888 var publicKey : secp256k1_pubkey = secp256k1_pubkey ( )
8989 let result = hash. withUnsafeBytes { ( hashRawBufferPointer: UnsafeRawBufferPointer ) -> Int32 ? in
@@ -124,7 +124,7 @@ extension SECP256K1 {
124124 return publicKey
125125 }
126126
127- public static func serializePublicKey( publicKey: input secp256 k1 _pubkey, compressed: Bool = false ) -> Data ? {
127+ public static func serializePublicKey( publicKey: inout secp256k1_pubkey , compressed: Bool = false ) -> Data ? {
128128 guard let context = context else { return nil }
129129 var keyLength = compressed ? 33 : 65
130130 var serializedPubkey = Data ( repeating: 0x00 , count: keyLength)
@@ -206,7 +206,7 @@ extension SECP256K1 {
206206 return recoverableSignature
207207 }
208208
209- internal static func serializeSignature( recoverableSignature: input secp256 k1 _ecdsa_recoverable_signature) -> Data ? {
209+ internal static func serializeSignature( recoverableSignature: inout secp256k1_ecdsa_recoverable_signature ) -> Data ? {
210210 guard let context = context else { return nil }
211211 var serializedSignature = Data ( repeating: 0x00 , count: 64 )
212212 var v : Int32 = 0
0 commit comments