---
title: "init(rawRepresentation:)"
framework: cryptokit
role: symbol
role_heading: Initializer
path: "cryptokit/curve25519/signing/privatekey/init(rawrepresentation:)"
---

# init(rawRepresentation:)

Creates a Curve25519 private key for signing from a data representation.

## Declaration

```swift
init<D>(rawRepresentation data: D) throws where D : ContiguousBytes
```

## Parameters

- `data`: A representation of the key as contiguous bytes from which to create the key.

## See Also

### Creating a private key

- [init()](cryptokit/curve25519/signing/privatekey/init().md)
