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

# init(rawRepresentation:)

Creates a P-521 private key for signing from a collection of bytes.

## Declaration

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

## Parameters

- `rawRepresentation`: A raw representation of the key as a collection of contiguous bytes.

## See Also

### Creating a key

- [init(compactRepresentable:)](cryptokit/p521/signing/privatekey/init(compactrepresentable:).md)
- [init(derRepresentation:)](cryptokit/p521/signing/privatekey/init(derrepresentation:).md)
- [init(pemRepresentation:)](cryptokit/p521/signing/privatekey/init(pemrepresentation:).md)
- [init(x963Representation:)](cryptokit/p521/signing/privatekey/init(x963representation:).md)
