pub fn blinded_dh(
secret: &RistrettoSecret,
blinding_scalar_bytes: &[u8; 32],
their_pubkey: &RistrettoPublic,
) -> EnvelopeResult<[u8; 32]>Expand description
Perform blinding-aware DH: shared = (secret + blinding_scalar) * their_pubkey.
Used by subscribers who received a blinding scalar r_i from the
NotificationService. The subscriber computes (s_sub + r_i) * P_pub,
which equals the publisher’s s_pub * (P_sub + r_i * G) by DH commutativity.
§Errors
Returns error if:
- The blinding scalar bytes are not a valid Ristretto scalar
- The resulting combined scalar is zero