ECDSA256r1
- +A library to verify ECDSA signatures made on the secp256r1 curve
This is the easiest library to deal with but also the most expensive in terms of gas cost. Indeed, this library must calculate multiple points on the curve in order to verify the signature. Use it kmowingly.
diff --git a/src/utils/ECDSA.sol/library.ECDSA.html b/src/utils/ECDSA.sol/library.ECDSA.html index f09a1fc..00a0edf 100644 --- a/src/utils/ECDSA.sol/library.ECDSA.html +++ b/src/utils/ECDSA.sol/library.ECDSA.html @@ -178,7 +178,7 @@ECDSA
- +Library for handling Elliptic Curve Digital Signature Algorithm (ECDSA) operations on a compatible curve
Functions
zz2Aff
diff --git a/src/utils/secp256r1.sol/constants.secp256r1.html b/src/utils/secp256r1.sol/constants.secp256r1.html index 0940bf8..b85e6ed 100644 --- a/src/utils/secp256r1.sol/constants.secp256r1.html +++ b/src/utils/secp256r1.sol/constants.secp256r1.html @@ -178,7 +178,7 @@Constants
- +p
uint256 constant p = 0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF;
diff --git a/src/utils/secp256r1.sol/function.nModInv.html b/src/utils/secp256r1.sol/function.nModInv.html
index 9f198f6..0449bf3 100644
--- a/src/utils/secp256r1.sol/function.nModInv.html
+++ b/src/utils/secp256r1.sol/function.nModInv.html
@@ -178,7 +178,7 @@
nModInv
- +Calculate the modular inverse of a given integer, which is the inverse of this integer modulo n.
Uses the ModExp precompiled contract at address 0x05 for fast computation using little Fermat theorem
function nModInv(uint256 self) returns (uint256 result);
diff --git a/src/utils/secp256r1.sol/function.pModInv.html b/src/utils/secp256r1.sol/function.pModInv.html
index bdd4a7f..50be298 100644
--- a/src/utils/secp256r1.sol/function.pModInv.html
+++ b/src/utils/secp256r1.sol/function.pModInv.html
@@ -178,7 +178,7 @@
pModInv
-
+
Calculate the modular inverse of a given integer, which is the inverse of this integer modulo p.
Uses the ModExp precompiled contract at address 0x05 for fast computation using little Fermat theorem
function pModInv(uint256 self) returns (uint256 result);