Files
whitepaper_obsero/docs/contract.md
T
2025-04-29 23:54:10 +02:00

22 lines
507 B
Markdown

# Obsero Smart Contract Specification
The smart contract anchors proof hashes on the Base blockchain.
## Functions
```solidity
function submitProof(bytes32 hash, string calldata cid, uint256 timestamp) external;
```
## Events
```solidity
event ProofSubmitted(address indexed observer, bytes32 hash, string cid, uint256 timestamp);
```
## Requirements
- The hash must match the signed JSON proof.
- CID must point to a valid IPFS document.
- Timestamps must be reasonable compared to block timestamp.