Concepts: Value Commitments
This page gives the formal definitions used by ZAIR value commitments.
Native scheme
When the configured value-commitment scheme is native, each pool exposes its native Zcash value commitment, see the references and Zcash specification for details:
- Sapling:
- Orchard:
Here rcv is the randomness used by the pool-native commitment scheme.
SHA-256 scheme
When the configured value-commitment scheme is sha256, both Sapling and Orchard use:
Here rcv_sha256 is the randomness used by the SHA-256 commitment scheme, and is the value as 8 little endian bytes, and the prefix "Zair" is a fixed 4-byte ASCII domain-separation tag.
Plain scheme
When the configured value-commitment scheme is plain, the note value is exposed directly as a single public field element with no commitment or randomness:
This provides no privacy for the note value. It is useful when value hiding is not required and a simpler, more compact public input is preferred. No rcv or rcv_sha256 randomness is needed.