Skip to content

Struct signed::HostSessionProof

zaun_community_protocol::signed::HostSessionProof · Struct

pub struct HostSessionProof { … }

The host’s proof of key possession in session.welcome. Signed by the host key.

2: the host.

3: from session.hello.

4: the challenge sent in this welcome.

5: the bound or requested community.

6: the epoch the host operates under for field 5.

7: ms since the epoch.

pub fn verify_for_client(signed: &SignedJson, host_public_key: &PublicKey, client_nonce: &Nonce, pair: Option<&ValidPair>) -> Result<Signed<Self>, SessionProofError>

The client’s check: verifies under host_public_key, requires host_id to derive from it and client_nonce to be the client’s fresh nonce. When a community is named, pair must be a (descriptor, delegation) pair already validated by super::validate_pair for that community, delegating to this host_id under this epoch; its min_suite then applies to the proof’s signature.

SessionProofError for a bad signature, encoding or mismatch.

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

Full rustdoc page