---
title: "init(relyingParty:clientDataHash:credentialID:attestationObject:extensionOutput:)"
framework: authenticationservices
role: symbol
role_heading: Initializer
path: "authenticationservices/aspasskeyregistrationcredential/init(relyingparty:clientdatahash:credentialid:attestationobject:extensionoutput:)"
---

# init(relyingParty:clientDataHash:credentialID:attestationObject:extensionOutput:)

Initializes a passkey registration credential object.

## Declaration

```swift
convenience init(relyingParty: String, clientDataHash: Data, credentialID: Data, attestationObject: Data, extensionOutput: ASPasskeyRegistrationCredentialExtensionOutput?)
```

## Parameters

- `relyingParty`: The relying party associated with the passkey.
- `clientDataHash`: A hash of the client data for the credential.
- `credentialID`: The identifier for the credential.
- `attestationObject`: The attestation object for the passkey, which may contain an attestation statement and authenticator data.
- `extensionOutput`: The extension output data.

## See Also

### Creating a passkey registration credential

- [init(relyingParty:clientDataHash:credentialID:attestationObject:)](authenticationservices/aspasskeyregistrationcredential/init(relyingparty:clientdatahash:credentialid:attestationobject:).md)
