---
title: "init(integrityCheckedRepresentation:)"
framework: cryptokit
role: symbol
role_heading: Initializer
path: "cryptokit/mldsa87/privatekey/init(integritycheckedrepresentation:)"
---

# init(integrityCheckedRepresentation:)

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

## Declaration

```swift
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.

## See Also

### Creating a private key

- [init()](cryptokit/mldsa87/privatekey/init().md)
- [init(seedRepresentation:publicKey:)](cryptokit/mldsa87/privatekey/init(seedrepresentation:publickey:).md)
