Expand description
Hard upper bounds on string-shaped fields. These are not security-critical
(signatures already bound what an attacker can publish to what the owner
signs) but they eliminate accidental footguns like cat huge.log | xargs freenet-git rename.
Constantsยง
- DEFAULT_
PREFIX_ LEN - Default prefix length the CLI emits for new repos.
- MAX_
DESCRIPTION_ BYTES - Maximum length of
SignedField<String>for thedescriptionfield. - MAX_
EXTENSION_ KEY_ BYTES - Maximum length of any single extension key.
- MAX_
EXTENSION_ VALUE_ BYTES - Maximum length of any single extension value.
- MAX_
NAME_ BYTES - Maximum length of
SignedField<String>for thenamefield. - MAX_
PREFIX_ LEN - Maximum length of a
RepoParamsprefix, in base58 characters. The full base58 of a 32-byte ed25519 public key is at most 44 characters, but we cap at 32 to leave headroom for future fingerprint formats. - MAX_
REF_ NAME_ BYTES - Maximum length of any single
RefName. - MIN_
PREFIX_ LEN - Minimum length of a
RepoParamsprefix, in base58 characters.