Expand description
Suture Protocol — wire format for client-server communication.
Defines the request/response types used by the Suture Hub for
push, pull, authentication, and repository management operations.
All types are serializable via serde for JSON transport.
Structs§
- Auth
Request - Blob
Delta - BlobRef
- Branch
Proto - Client
Capabilities - Handshake
Request - Handshake
Request V2 - Handshake
Response - Handshake
Response V2 - Hash
Proto - List
Repos Response - Patch
Proto - Pull
Request - Pull
Request V2 - Pull
Response - Pull
Response V2 - Push
Request - Push
Request V2 - Push
Response - Repo
Info Response - Server
Capabilities
Enums§
Constants§
Functions§
- apply_
delta - canonical_
push_ bytes - Build canonical bytes for push request signing. Format: repo_id \0 patch_count \0 (each patch: id \0 op \0 author \0 msg \0 timestamp \0) … branch_count \0 (each: name \0 target \0) …
- compress
- compute_
delta - decompress
- hash_
to_ hex - hex_
to_ hash