<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/MLDSA87/PrivateKey/init(integrityCheckedRepresentation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Apple CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit7MLDSA87O10PrivateKeyV30integrityCheckedRepresentationAEx_tKc10Foundation12DataProtocolRzlufc"
  },
  "title" : "init(integrityCheckedRepresentation:)"
}
-->

# init(integrityCheckedRepresentation:)

Initializes a private key from an integrity-checked data representation.

```
init<D>(integrityCheckedRepresentation: D) throws where D : DataProtocol
```

## Parameters

`integrityCheckedRepresentation`

The integrity-checked data representation of the private key.
The parameter needs to be 64 bytes long, and contain the seed and a hash of the public key.

---

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)