<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/P384/Signing/PrivateKey/init(compactRepresentable:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Apple CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit4P384O7SigningO10PrivateKeyV20compactRepresentableAGSb_tcfc"
  },
  "title" : "init(compactRepresentable:)"
}
-->

# init(compactRepresentable:)

Creates a random P-384 private key for signing.

```
init(compactRepresentable: Bool = true)
```

## Parameters

`compactRepresentable`

A Boolean value that indicates whether CryptoKit
creates the key with the structure to enable compact point encoding.

## Discussion

Keys that use a compact point encoding enable shorter public keys, but aren’t
compliant with FIPS certification. If your app requires FIPS certification,
create a key with [`init(rawRepresentation:)`](/documentation/CryptoKit/P384/Signing/PrivateKey/init(rawRepresentation:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)