---
title: "init(rootHash:)"
framework: sharedwithyoucore
role: symbol
role_heading: Initializer
path: "sharedwithyoucore/swperson/identity/init(roothash:)"
---

# init(rootHash:)

Creates and initializes the hash.

## Declaration

```swift
init(rootHash: Data)
```

## Parameters

- `rootHash`: The root hash of the tree that represents the individual’s identity.
