pub type ProtocolCommit = [u8; 20];Expand description
ProtocolCommit describes a specific protocol repo version. Used to ensure communicating daemons in a validator deployment are compatible.
Printable ASCII: a short prefix followed by the leading characters of the protocol repo commit id. Peers only ever compare it byte for byte, and it travels as plain text outside XDR too – runtime manifests, log lines, and indexer outbox filenames – so it stays text rather than a raw hash.
Fixed width, so a peer cannot declare a length: decoding reads exactly these bytes into an inline array, with no length prefix and no allocation. 20 is a whole number of XDR words, so nothing is spent on padding.