Skip to content

Commit 2041e5d

Browse files
committed
Merge branch 'develop' of github.com:stavares843/web3swift into develop
2 parents 74b54ec + 111885e commit 2041e5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Web3Core/Structure/SECP256k1.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ extension SECP256K1 {
8383
return serializedKey
8484
}
8585

86-
internal static func recoverPublicKey(hash: Data, recoverableSignature: input secp256k1_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 secp256k1_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 secp256k1_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

Comments
 (0)