Skip to content

Commit

Permalink
Improve ec constants docs (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilitteri authored Nov 7, 2023
1 parent 6ba64df commit 9d56444
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions precompiles/P256VERIFY.yul
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ object "P256VERIFY" {
// CURVE CONSTANTS

/// @notice Constant function for curve reduced elliptic group order.
/// @dev P is a prime number which defines the field which is a domain of the curve parameters.
/// @dev See https://neuromancer.sk/std/secg/secp256r1 for further details.
/// @return p The curve reduced elliptic group order.
function P() -> p {
p := 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
}

/// @notice Constant function for curve subgroup order.
/// @dev N is the order of generator G.
/// @dev See https://neuromancer.sk/std/secg/secp256r1 for further details.
/// @return n The curve subgroup order.
function N() -> n {
Expand Down

0 comments on commit 9d56444

Please sign in to comment.