pub fn blind_pubkey(
    pk: &PublicKey,
    param: [u8; 32]
) -> Result<PublicKey, BlindingError>
Expand description

Blind the ed25519 public key pk using the blinding parameter param, and return the blinded public key.

This algorithm is described in rend-spec-v3.txt, section A.2. In the terminology of that section, the value pk corresponds to A, and the value param corresponds to h.

Note that the approach used to clamp param to a scalar means that different possible values for param may yield the same output for a given pk. This and other limitations make this function unsuitable for use outside the context of rend-spec-v3.txt without careful analysis.

Errors

This function can fail if the input is not actually a valid Ed25519 public key.

Availability

This function is only available when the hsv3-client feature is enabled.