|
32 | 32 | // is the lexicographically largest of the two associated with the encoded
|
33 | 33 | // x-coordinate.
|
34 | 34 | //
|
35 |
| -// |----------------------------------------------------| |
36 |
| -// | Serialization Format | |
37 |
| -// |-----|-------|-------|---------------|--------------| |
38 |
| -// | MSB | MSB-1 | MSB-2 | Description | Encoding | |
39 |
| -// |-----|-------|-------|---------------|--------------| |
40 |
| -// | 0 | X | X | Uncompressed | e || x || y | |
41 |
| -// | 1 | X | X | Compressed | e || x | |
42 |
| -// |-----|-------|-------|---------------|--------------| |
43 |
| -// | X | 0 | X | Non-Infinity | e || x || y | |
44 |
| -// | X | 1 | X | Infinity | e || 0 || 0 | |
45 |
| -// |-----|-------|-------|---------------|--------------| |
46 |
| -// | | | | Compressed, | | |
47 |
| -// | 1 | 0 | 1 | Non-Infinity, | e || x | |
48 |
| -// | | | | Big y-coord | | |
49 |
| -// |-----|-------|-------|---------------|--------------| |
50 |
| -// | | | | Compressed, | | |
51 |
| -// | 1 | 0 | 0 | Non-Infinity, | e || x | |
52 |
| -// | | | | Small y-coord | | |
53 |
| -// |----------------------------------------------------| |
| 35 | +// |------------------------------------------------------| |
| 36 | +// | Serialization Format | |
| 37 | +// |-----|-------|-------|-----------------|--------------| |
| 38 | +// | MSB | MSB-1 | MSB-2 | Description | Encoding | |
| 39 | +// |-----|-------|-------|-----------------|--------------| |
| 40 | +// | | | | Non-compressed, | | |
| 41 | +// | 0 | 0 | 0 | Non-Infinity, | e || x || y | |
| 42 | +// | | | | Zero. | | |
| 43 | +// |-----|-------|-------|-----------------|--------------| |
| 44 | +// | | | | Non-compressed, | | |
| 45 | +// | 0 | 0 | 1 | Non-Infinity, | Invalid | |
| 46 | +// | | | | One. | | |
| 47 | +// |-----|-------|-------|-----------------|--------------| |
| 48 | +// | | | | Non-compressed, | | |
| 49 | +// | 0 | 1 | 0 | Infinity, | e || 0 || 0 | |
| 50 | +// | | | | Zero. | | |
| 51 | +// |-----|-------|-------|-----------------|--------------| |
| 52 | +// | | | | Non-compressed, | | |
| 53 | +// | 0 | 1 | 1 | Infinity, | Invalid | |
| 54 | +// | | | | One. | | |
| 55 | +// |-----|-------|-------|-----------------|--------------| |
| 56 | +// | | | | Compressed, | | |
| 57 | +// | 1 | 0 | 0 | Non-Infinity, | e || x | |
| 58 | +// | | | | Small y-coord | | |
| 59 | +// |-----|-------|-------|-----------------|--------------| |
| 60 | +// | | | | Compressed, | | |
| 61 | +// | 1 | 0 | 1 | Non-Infinity, | e || x | |
| 62 | +// | | | | Big y-coord | | |
| 63 | +// |-----|-------|-------|-----------------|--------------| |
| 64 | +// | | | | Compressed, | | |
| 65 | +// | 1 | 1 | 0 | Infinity, | e || 0 | |
| 66 | +// | | | | Zero. | | |
| 67 | +// |-----|-------|-------|-----------------|--------------| |
| 68 | +// | | | | Compressed, | | |
| 69 | +// | 1 | 1 | 1 | Infinity, | Invalid | |
| 70 | +// | | | | One. | | |
| 71 | +// |------------------------------------------------------| |
54 | 72 | package bls12381
|
0 commit comments