Skip to content

Commit

Permalink
EIP-197 and EIP-196: Fix coordinate description
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainpelissier committed Jul 18, 2024
1 parent 76c1221 commit 350b33e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EIPS/eip-196.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ p = 2188824287183927522224640574525727508869631115729782366268903789464522620858

### Encoding

Field elements and scalars are encoded as 32 byte big-endian numbers. Curve points are encoded as two field elements `(x, y)`, where the point at infinity is encoded as `(0, 0)`.
Field elements and scalars are encoded as 32 byte big-endian numbers. Curve points are encoded as two field elements `(x, y)` representing the affine coordinates, where the point at infinity is encoded as `(0, 0)`.

Tuples of objects are encoded as their concatenation.

Expand Down
2 changes: 1 addition & 1 deletion EIPS/eip-197.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Elements of `F_p` are encoded as 32 byte big-endian numbers. An encoding value o

Elements `a * i + b` of `F_p^2` are encoded as two elements of `F_p`, `(a, b)`.

Elliptic curve points are encoded as a Jacobian pair `(X, Y)` where the point at infinity is encoded as `(0, 0)`.
Elliptic curve points are encoded as as two field elements `(x, y)` representing the affine coordinates where the point at infinity is encoded as `(0, 0)`.

Note that the number `k` is derived from the input length.

Expand Down

0 comments on commit 350b33e

Please sign in to comment.