Skip to main content

endpoint_commitment

Function endpoint_commitment 

Source
pub fn endpoint_commitment(
    pk_nonce: &Nonce,
    endpoints: &[Element; 68],
) -> Digest
Expand description

Public salt plus endpoint commitment, exactly ordered as upstream DSig.

BLAKE3(pk_nonce ‖ endpoint[0] ‖ … ‖ endpoint[67]): 16 + 68 × 18 = 1,240 input bytes, which is why the summary in crate counts 21 BLAKE3 compressions for the endpoint commitment. Signer and verifier both call this; a match proves the revealed nodes lead to this key’s endpoints.