Skip to content

Commit 2b28554

Browse files
committed
use normal space
1 parent ab88c0f commit 2b28554

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

docs/modules/ROOT/pages/utilities.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ IMPORTANT: The P256 library only allows for `s` values in the lower order of the
7373

7474
==== RSA
7575

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].
7777

7878
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.
7979

@@ -310,10 +310,10 @@ function push(bytes32 leaf) public /* onlyOwner */ {
310310
311311
function _hashFn(bytes32 a, bytes32 b) internal view returns(bytes32) {
312312
// Custom hash function implementation
313-
// Kept as an internal implementation detail to
313+
// Kept as an internal implementation detail to
314314
// guarantee the same function is always used
315315
}
316-
----
316+
----
317317

318318
=== Using a Heap
319319

@@ -494,7 +494,7 @@ You can also check return data size before processing:
494494
function checkReturnSize(address target, bytes memory data) internal returns (uint256 value, uint256 otherValue) {
495495
(bool success, bytes32 result1, bytes32 result2) = target.callReturn64Bytes(data);
496496
497-
if (!success || LowLevelCall.returnDataSize() < 32) {
497+
if (!success || LowLevelCall.returnDataSize() < 32) {
498498
return (0, 0);
499499
} else if (LowLevelCall.returnDataSize() < 64) {
500500
return (uint256(result1), 0);
@@ -561,7 +561,7 @@ The xref:api:utils.adoc#Time[`Time`] library provides helpers for manipulating t
561561

562562
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.
563563

564-
Consider this example for using and safely updating Delays:
564+
Consider this example for using and safely updating Delays:
565565
[source,solidity]
566566
----
567567
// SPDX-License-Identifier: MIT
@@ -571,7 +571,7 @@ import {Time} from "contracts/utils/types/Time.sol";
571571
572572
contract MyDelayedContract {
573573
using Time for *;
574-
574+
575575
Time.Delay private _delay;
576576
577577
constructor() {
@@ -582,30 +582,30 @@ contract MyDelayedContract {
582582
// Get the current `_delay` value, respecting any pending delay changes if they've taken effect
583583
uint32 currentDelay = _delay.get();
584584
uint48 executionTime = Time.timestamp() + currentDelay;
585-
585+
586586
// ... schedule the operation at `executionTime`
587587
}
588-
588+
589589
function execute(bytes32 operationId) external {
590590
uint48 executionTime = getExecutionTime(operationId);
591591
require(executionTime > 0, "Operation not scheduled");
592592
require(Time.timestamp() >= executionTime, "Delay not elapsed yet");
593593
594594
// ... execute the operation
595595
}
596-
596+
597597
// Update the delay with `Time`'s safety mechanism
598598
function updateDelay(uint32 newDelay) external {
599599
(Time.Delay updatedDelay, uint48 effect) = _delay.withUpdate(
600600
newDelay, // The new delay value
601601
5 days // Minimum setback if reducing the delay
602602
);
603-
603+
604604
_delay = updatedDelay;
605605
606606
// ... emit events
607607
}
608-
608+
609609
// Get complete delay details including pending changes
610610
function getDelayDetails() external view returns (
611611
uint32 currentValue, // The current delay value

0 commit comments

Comments
 (0)