Skip to main content

Module github_binding

Module github_binding 

Source
Expand description

Cross-signature binding an agent-mesh UserKey to a GitHub SSH ed25519 key.

Workflow:

  1. User has an ed25519 SSH key in ~/.ssh/ (the one GitHub already knows about).
  2. amesh bind github signs the agent-mesh user public key with that SSH private key, producing a GitHubBinding.
  3. The binding is published alongside the user’s identity announcements.
  4. A peer fetches https://github.com/<username>.keys, picks the matching ed25519 line, parses it, and calls GitHubBinding::verify. A success means: “this agent-mesh user pubkey is held by the same person who controls github.com/.

Structs§

GitHubBinding
Cross-signature: “this agent-mesh UserKey belongs to the holder of this SSH key”.

Functions§

ssh_pubkey_ed25519_bytes
Extract the raw 32-byte ed25519 public key from a parsed SSH public key. Returns MeshError::InvalidKey for non-ed25519 keys.