mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
This way, the description isn't rendered in the tables of contents, leading to no more formatting errors.
30 lines
853 B
YAML
30 lines
853 B
YAML
"$schema": http://json-schema.org/draft-04/schema#
|
|
"$id": https://nix.dev/manual/nix/latest/protocols/json/schema/hash-v1.json
|
|
title: Hash
|
|
description: |
|
|
A cryptographic hash value used throughout Nix for content addressing and integrity verification.
|
|
|
|
This schema describes the JSON representation of Nix's `Hash` type.
|
|
|
|
TODO Work in progress
|
|
type: object
|
|
properties:
|
|
algorithm:
|
|
title: Hash algorithm
|
|
"$ref": "#/$defs/algorithm"
|
|
required:
|
|
- algorithm
|
|
additionalProperties: false
|
|
"$defs":
|
|
algorithm:
|
|
type: string
|
|
enum:
|
|
- blake3
|
|
- md5
|
|
- sha1
|
|
- sha256
|
|
- sha512
|
|
description: |
|
|
The hash algorithm used to compute the hash value.
|
|
|
|
`blake3` is currently experimental and requires the [`blake-hashing`](@docroot@/development/experimental-features.md#xp-feature-blake-hashing) experimental feature.
|