# Struct signed::MemberReauth

> Signed by the member key. Binds the challenge to the community, the new host and the delegation epoch it operates under, so a proof made for one host or epoch is useless at another

`zaun_community_protocol::signed::MemberReauth` · Struct

```rust
pub struct MemberReauth { … }
```

Signed by the member key. Binds the challenge to the community, the new host and the
delegation epoch it operates under, so a proof made for one host or epoch is useless at
another.

## Fields

### `community_id: CommunityId`

2: the community.

### `host_id: HostId`

3: the host this proof is made to.

### `delegation_epoch: u64`

4: the delegation epoch of that host (from its welcome's proof).

### `host_challenge: Challenge`

5: from this connection's latest `session.welcome`.

### `member_public_key: PublicKey`

6: the member key; the signer.

### `issued_at: u64`

7: ms since the epoch.

## Methods

### `verify_for_host`

```rust
pub fn verify_for_host(signed: &SignedJson, member_public_key: &PublicKey, expected: &ReauthExpectation, min_suite: u8) -> Result<Signed<Self>, RegistrationError>
```

The host's check: verifies under the command's `member_public_key` (never a key read
from the bytes), then requires field 6 to be that key and fields 2–5 to match.
Consuming the challenge is the caller's job.

# Errors
`RegistrationError` for a bad signature, encoding or mismatch (an epoch mismatch is
[`RegistrationError::Host`]: the proof was made for another delegation of a host).

## Trait implementations

`Clone`, `Debug`, `Decode`, `Encode`, `Eq`, `PartialEq`, `SignedObject`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/signed/member_reauth/struct.MemberReauth.html)
