Search posts, tags, users, and pages
Hossein ghasemi
Energy Code Cosmos lambda_(Rastakh) \rightarrow linfty\
## Introduction In modern decentralized architectures, ensuring tamper-proof state verification across off-chain computation and on-chain security layers is critical. **Rastakhmind** is designed to ad
Markdown supported · ⌘↵ to post
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20;
contract RastakhState { bytes32 public latestStateRoot; uint256 public lastUpdatedTimestamp;
event StateUpdated(bytes32 indexed newRoot, uint256 timestamp); function updateStateRoot(bytes32 _newRoot) external { latestStateRoot = _newRoot; lastUpdatedTimestamp = block.timestamp; emit StateUpdated(_newRoot, block.timestamp); }
}
Hossein ghasemi
Energy Code Cosmos lambda_(Rastakh) \rightarrow linfty\
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20;
contract RastakhState { bytes32 public latestStateRoot; uint256 public lastUpdatedTimestamp;
}