Skip to main content

encode_from_bytes

Function encode_from_bytes 

Source
pub fn encode_from_bytes<C, X>(
    msg: &[&[u8]],
    dst: &[&[u8]],
) -> Result<ProjectivePoint<C>, X::Error>
Expand description

Computes the encode to curve routine. See GroupDigest::encode_from_bytes() for more details.

For the expand_message call, len_in_bytes = <Self::FieldElement as FromOkm>::Length.

ยงErrors

When the chosen ExpandMsg implementation returns an error. See ExpandMsgXmdError and ExpandMsgXofError for examples.