<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SharedWithYouCore",
  "identifier" : "/documentation/SharedWithYouCore/SWPerson/IdentityProof",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Shared with You Core",
      "SharedWithYouCore"
    ],
    "preciseIdentifier" : "c:objc(cs)SWPersonIdentityProof"
  },
  "title" : "SWPerson.IdentityProof"
}
-->

# SWPerson.IdentityProof

An object that represents proof of inclusion to a Merkle tree.

```
class IdentityProof
```

## Overview

This object represents an opaque Merkle tree proof of inclusion. Inclusion hashes are provided to verify that the individual device has access to the document.

## Topics

### Accessing attributes

[`var inclusionHashes: [Data]`](/documentation/SharedWithYouCore/SWPerson/IdentityProof/inclusionHashes)

The hashes of missing Merkle tree nodes that can provide proof of inclusion.

[`var publicKey: Data`](/documentation/SharedWithYouCore/SWPerson/IdentityProof/publicKey)

The public key of local device.

[`var publicKeyIndex: Int`](/documentation/SharedWithYouCore/SWPerson/IdentityProof/publicKeyIndex)

The index of the local public key in the Merkle tree.

### Initializers

[`init?(coder: NSCoder)`](/documentation/SharedWithYouCore/SWPerson/IdentityProof/init(coder:))

## Relationships

### Inherited By

[`SignedIdentityProof`](/documentation/SharedWithYouCore/SWPerson/SignedIdentityProof)

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)