---
title: SecurityMessage.KeyType.publicKey
framework: accessorytransportextension
role: symbol
role_heading: Case
path: accessorytransportextension/securitymessage/keytype-swift.enum/publickey
---

# SecurityMessage.KeyType.publicKey

A public key, sent from the accessory to the host.

## Declaration

```swift
case publicKey
```

## See Also

### Identifying key types

- [SecurityMessage.KeyType.encapsulatedKey](accessorytransportextension/securitymessage/keytype-swift.enum/encapsulatedkey.md)
