Skip to main content

value_commitment

Function value_commitment 

Source
pub fn value_commitment(raw_value: &[u8]) -> ([u8; 32], u32)
Expand description

Compute the (value_hash, value_len) commitment for a raw feed value.

This is the single place signing nodes and verifiers derive the commitment that is hashed into the EVM-compatible message. The wire DataUpdate does not store these fields.

ยงPanics

If raw_value is longer than u32::MAX bytes.