---
title: "sec_protocol_metadata_copy_peer_public_key(_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sec_protocol_metadata_copy_peer_public_key(_:)"
---

# sec_protocol_metadata_copy_peer_public_key(_:)

## Declaration

```swift
func sec_protocol_metadata_copy_peer_public_key(_ metadata: sec_protocol_metadata_t) -> dispatch_data_t?
```

## Parameters

- `metadata`: A sec_protocol_metadata_t instance.

## Return Value

Return Value A dispatch_data_t containing the peer’s raw public key.

## Discussion

Discussion Get the protocol instance peer’s public key.
