agent-id-handshake 0.1.0

Handshake protocol for the Agent Identity Protocol
Documentation

agent-id-handshake

Mutual authentication handshake for the Agent Identity Protocol.

Features

  • Challenge-response handshake protocol
  • Mutual authentication (both parties verify each other)
  • Session establishment

Usage

use agent_id_core::RootKey;
use agent_id_handshake::protocol::Verifier;
use agent_id_handshake::messages::Hello;

let my_key = RootKey::generate();
let verifier = Verifier::new(my_key.did());

// Handle incoming Hello, create challenge
let challenge = verifier.handle_hello(&hello)?;

// Verify proof from peer
verifier.verify_proof(&proof, &challenge)?;

License

Apache-2.0