We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f5e70e commit c786c0fCopy full SHA for c786c0f
Sources/Web3Core/Structure/SECP256k1.swift
@@ -124,7 +124,7 @@ extension SECP256K1 {
124
return publicKey
125
}
126
127
- public static func serializePublicKey(publicKey: input secp256k1_pubkey, compressed: Bool = false) -> Data? {
+ public static func serializePublicKey(publicKey: inout secp256k1_pubkey, compressed: Bool = false) -> Data? {
128
guard let context = context else { return nil }
129
var keyLength = compressed ? 33 : 65
130
var serializedPubkey = Data(repeating: 0x00, count: keyLength)
0 commit comments