<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/JPKIPassContents/Identity/signature(for:using:)-35arv",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "s:7PassKit16JPKIPassContentsV8IdentityP9signature3for5usingSayAC9SignatureVy_0E4TypeQzGGSay10Foundation4DataVG_AC21AuthenticationRequestVy_ALGtYaKF"
  },
  "title" : "signature(for:using:)"
}
-->

# signature(for:using:)

Signs the supplied array of data with the identity’s private key

```
func signature(for data: [Data], using request: JPKIPassContents.AuthenticationRequest<Self.IdentityType>) async throws -> [JPKIPassContents.Signature<Self.IdentityType>]
```

## Discussion

- Properties:
  - data: Data array to be signed with the specified identity
  - authentication: User authentication request to perform identity signature with

> throws: See Error type defined below

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)