Skip to main content

Crate suture_protocol

Crate suture_protocol 

Source
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§

AuthRequest
BlobRef
BranchProto
HandshakeRequest
HandshakeResponse
HashProto
ListReposResponse
PatchProto
PullRequest
PullResponse
PushRequest
PushResponse
RepoInfoResponse

Enums§

AuthMethod

Constants§

PROTOCOL_VERSION

Functions§

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) …
hash_to_hex
hex_to_hash