Skip to main content

commitment

Function commitment 

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

Computes commit_B = SHA-256(label || nonce_B).

The label and the raw 32-byte nonce are concatenated without a separator, exactly as the spec writes them. The value is public - it travels in client/pair-init - and reveals nothing about nonce_B before the seal is opened.