---
title: SWPerson.Identity
framework: sharedwithyoucore
role: symbol
role_heading: Class
path: sharedwithyoucore/swperson/identity
---

# SWPerson.Identity

The unique identity for a person.

## Declaration

```swift
class Identity
```

## Mentioned in

Adding custom collaboration to your app

## Overview

Overview This object represents an opaque Merkle tree where the root hash of the tree can uniquely identify the individual using the hash value of all of their devices. The individual’s devices use SWPerson.IdentityProof to prove themselves to be part of this identity, and can then be used for cryptographic signatures for that individual.

## Topics

### Creating a hash

- [init(rootHash:)](sharedwithyoucore/swperson/identity/init(roothash:).md)

### Accessing the hash

- [rootHash](sharedwithyoucore/swperson/identity/roothash.md)

### Initializers

- [init(coder:)](sharedwithyoucore/swperson/identity/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Accessing attributes

- [SWPerson.IdentityProof](sharedwithyoucore/swperson/identityproof.md)
- [SWPerson.SignedIdentityProof](sharedwithyoucore/swperson/signedidentityproof.md)
