Skip to main content

kept_value_digest

Function kept_value_digest 

Source
pub fn kept_value_digest(encoded: &[u8]) -> [u8; 32]
Expand description

The digest an accepted change’s kept record holds in place of a value nothing reads in full (D7.3): SHA-256 over the context-framed label coven/kept-value/v1 and the value’s encoded bytes. Two values have equal digests exactly when their encodings are equal, under SHA-256’s collision resistance.