Skip to main content

Module limits

Module limits 

Source
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 the description field.
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 the name field.
MAX_PREFIX_LEN
Maximum length of a RepoParams prefix, 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 RepoParams prefix, in base58 characters.