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

# init(rawRepresentation:)

Creates a Curve25519 public key from a data representation.

## Declaration

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

## Parameters

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