You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/crypto/src/bls12_318/constants.rs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,14 @@ mod test {
53
53
point
54
54
}
55
55
56
+
// Note about the bitwise OR operation on the X coordinates:
57
+
//
58
+
// The first bit of the x-coordinate sets the "compression" flag. The most significant three bits of a G1/G2 coordinate are used for storing some information.
59
+
// If we didn't do that to the output, the constants wouldn't check out due to the constants being constructed by a standard adhereing BLS library,
60
+
// where it set the compression flag since it's the standard way of serializing the points.
0 commit comments