Skip to content

Commit bee70be

Browse files
committed
fix(doc): group serialization relies on the library's serialization function.
1 parent d1aad6c commit bee70be

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/serialization.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,8 @@ pub fn deserialize_elements<G: PrimeGroup>(data: &[u8], count: usize) -> Option<
6464

6565
/// Serialize a slice of scalar field elements into a byte vector.
6666
///
67-
/// This function is equivalent to
68-
///
69-
/// ```ignore
70-
/// I2OSP(byte, 1) + I2OSP(x, self.field_bytes_length)
71-
/// ```
72-
///
73-
/// with I2OSP as described in RFC8017.
67+
/// This method internally relies on the underlying group serialization function,
68+
/// and is meant to match the Internet Draft for point compression.
7469
///
7570
/// # Parameters
7671
/// - `scalars`: A slice of scalar field elements to serialize.

0 commit comments

Comments
 (0)