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: docs/modules/ROOT/pages/utilities.adoc
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ IMPORTANT: The P256 library only allows for `s` values in the lower order of the
73
73
74
74
==== RSA
75
75
76
-
RSA is a public-key cryptosystem that was popularized by corporate and governmental public key infrastructures (https://en.wikipedia.org/wiki/Public_key_infrastructure[PKIs]) and https://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions[DNSSEC].
76
+
RSA is a public-key cryptosystem that was popularized by corporate and governmental public key infrastructures (https://en.wikipedia.org/wiki/Public_key_infrastructure[PKIs]) and https://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions[DNSSEC].
77
77
78
78
This cryptosystem consists of using a private key that's the product of 2 large prime numbers. The message is signed by applying a modular exponentiation to its hash (commonly SHA256), where both the exponent and modulus compose the public key of the signer.
79
79
@@ -310,10 +310,10 @@ function push(bytes32 leaf) public /* onlyOwner */ {
310
310
311
311
function _hashFn(bytes32 a, bytes32 b) internal view returns(bytes32) {
312
312
// Custom hash function implementation
313
-
// Kept as an internal implementation detail to
313
+
// Kept as an internal implementation detail to
314
314
// guarantee the same function is always used
315
315
}
316
-
----
316
+
----
317
317
318
318
=== Using a Heap
319
319
@@ -494,7 +494,7 @@ You can also check return data size before processing:
if (!success ||LowLevelCall.returnDataSize() < 32) {
497
+
if (!success ||LowLevelCall.returnDataSize() < 32) {
498
498
return (0, 0);
499
499
} else if (LowLevelCall.returnDataSize() < 64) {
500
500
return (uint256(result1), 0);
@@ -561,7 +561,7 @@ The xref:api:utils.adoc#Time[`Time`] library provides helpers for manipulating t
561
561
562
562
One of its key features is the `Delay` type, which represents a duration that can automatically change its value at a specified point in the future while maintaining delay guarantees. For example, when reducing a delay value (e.g., from 7 days to 1 day), the change only takes effect after the difference between the old and new delay (i.e. a 6 days) or a minimum setback period, preventing an attacker who gains admin access from immediately reducing security timeouts and executing sensitive operations. This is particularly useful for governance and security mechanisms where timelock periods need to be enforced.
563
563
564
-
Consider this example for using and safely updating Delays:
564
+
Consider this example for using and safely updating Delays:
565
565
[source,solidity]
566
566
----
567
567
// SPDX-License-Identifier: MIT
@@ -571,7 +571,7 @@ import {Time} from "contracts/utils/types/Time.sol";
0 commit comments