Skip to content

Commit

Permalink
- bug fix safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Dec 20, 2023
1 parent b0747e6 commit af91c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KukaiCryptoSwift/KeyPair.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public struct KeyPair {

/// Helper method to take a secp256k1 private key (for a regualr keypair) and use it to create a public key for the same curve
public static func secp256k1PublicKey(fromPrivateKeyBytes pkBytes: [UInt8]) -> PublicKey? {
if pkBytes.count != 64 {
if pkBytes.count != 32 {
return nil
}

Expand Down

0 comments on commit af91c52

Please sign in to comment.