Skip to main content

row_hash_columns

Function row_hash_columns 

Source
pub fn row_hash_columns(
    schema: &SchemaRef,
    spec: &RowHash,
) -> Result<Vec<String>>
Expand description

The columns _rivet_row_hash covers, resolved against a real schema.

row_hash: true resolves to every column in projection order — what the column has always meant. A declared list resolves to itself, and a name that is not in the projection FAILS here rather than being skipped: a skipped column would produce hashes that agree while attesting content that was never hashed, which is the quietest way this feature could lie.