# `Attestation`

A class in `fastatp.authz.attestation` ([source](https://github.com/jacoblapenna/fastatp/blob/main/fastatp/authz/attestation.py#L37)).

Based on [`Lexicon`](https://fastatp.com/api/lexicon.md).

A signed pointer to a WireGuard-reachable repo, bound to a context.

`endpoint` is a `wg://[host]?pubkey=..` URI (the attestation reuses
the DID-document `WireGuardFirehose` URI shape) so a single field
carries the peer's static key — from which its overlay address, the
`/128` the doorman routes on, is derived — and its optional endpoint
host. `wg_public_key` repeats the static key at top level for
convenience and cross-checking.

## Attributes

- `nsid`
- `context_id: str`
- `ephemeral_did: Did`
- `wg_public_key: str`
- `endpoint: str`
- `expires_at: Datetime`

## Methods

### `peer_info`

```python
peer_info() -> WireGuardPeerInfo
```

The attested peer's WireGuard identity (key + tunnel ip + host).

### `is_expired`

```python
is_expired(now: datetime | None = None) -> bool
```
