---
title: publicKeyIndex
framework: sharedwithyoucore
role: symbol
role_heading: Instance Property
path: sharedwithyoucore/swperson/identityproof/publickeyindex
---

# publicKeyIndex

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

## Declaration

```swift
var publicKeyIndex: Int { get }
```

## Discussion

Discussion This data can be used to determine if the node is the left or the right child in the tree.

## See Also

### Accessing attributes

- [inclusionHashes](sharedwithyoucore/swperson/identityproof/inclusionhashes.md)
- [publicKey](sharedwithyoucore/swperson/identityproof/publickey.md)
