# `XMediaLib.SDP.Fingerprint`
[🔗](https://github.com/Lazarus404/xmedialib/blob/main/lib/sdp/types.ex#L246)

DTLS certificate fingerprint (`a=fingerprint:`) for SRTP keying.

## What problem this solves

WebRTC ties DTLS-SRTP keys to the certificate fingerprint advertised in SDP.
Peers compare `a=fingerprint:` to the cert seen in the DTLS handshake before
sending media. This struct stores the hash algorithm and hex digest from SDP.

Peers compare the SDP fingerprint to the certificate presented during the
DTLS handshake before deriving SRTP keys.

Wire form: `a=fingerprint:<hash-algo> <fingerprint>`

## RFCs

* [RFC 8122](https://www.rfc-editor.org/rfc/rfc8122) - DTLS-SRTP fingerprint
* [RFC 5764](https://www.rfc-editor.org/rfc/rfc5764) - DTLS-SRTP

# `t`

```elixir
@type t() :: %XMediaLib.SDP.Fingerprint{algorithm: String.t(), value: String.t()}
```

Hash algorithm and colon-separated fingerprint value.

## Fields

* `:algorithm` - digest name, e.g. `sha-256`
* `:value` - uppercase hex fingerprint without spaces

---

*Consult [api-reference.md](api-reference.md) for complete listing*
