Technical reference
Security considerations
Time Validation
- Primary Enforcement: Scrolls enforces trading deadlines at the transaction layer
- Contract Validation: Timestamp passed in operation data is validated by the contract
- Defense-in-Depth: Both layers provide security
Signature Verification
- Resolution Signatures: Uses Schnorr signatures (k256) for WASM compatibility
- Creator Signatures: Market creator can cancel markets with valid signature
- Oracle Proofs: Cross-chain oracle verification (simplified trusted oracle for Hackathon MVP). Migrating to verification via Reclaim Protocol.
Supply Limits
- Min Bet: Prevents dust attacks and ensures meaningful trades
- Max Supply: Bounds market size and prevents overflow
- Checked Arithmetic: All supply operations use checked arithmetic to prevent overflow