---
title: SecPublicKeyHash
framework: security
role: symbol
role_heading: Type Alias
path: security/secpublickeyhash
---

# SecPublicKeyHash

A container for a 20-byte public key hash.

## Declaration

```swift
typealias SecPublicKeyHash = (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)
```

## Discussion

Discussion The SecPublicKeyHash type represents a hash of a public key. You can use the constant kSecPublicKeyHashItemAttr as input to functions in the Keychain Services API to set or retrieve a certificate attribute value of this type. See Keychain services for information about getting and setting attribute values.
