Commit Graph

6 Commits

Author SHA1 Message Date
Tutus Development f006f1623c Native contracts complete - all tests passing 2025-12-27 15:45:47 +00:00
Tutus Development 3eaae08a38 Implement ADR-008 on-chain security features
Add three key security mechanisms for the Tutus blockchain:

1. Commit-Reveal for Investments (collocatio.go)
   - Two-phase investment pattern to prevent front-running attacks
   - User commits hash(amount || nonce || investor), waits 10 blocks,
     then reveals actual amount with nonce for verification
   - Methods: commitInvestment, revealInvestment, cancelCommitment
   - InvestmentCommitment state type with CommitmentStatus enum
   - Configurable delay (10 blocks) and reveal window (1000 blocks)

2. Whale Concentration Limits (collocatio.go)
   - Enforces max 5% (configurable) of opportunity pool per investor
   - Prevents wealth concentration in investment opportunities
   - Check performed in invest() method before accepting investment

3. Sybil Resistance Vesting (vita.go)
   - New Vita tokens have 30-day vesting period (2,592,000 blocks)
   - VestedUntil field added to Vita state struct
   - Methods: setVesting (committee), isFullyVested, getVestingInfo
   - Cross-contract methods: IsFullyVestedInternal, GetVestedUntil
   - Prevents mass creation of fake identities for manipulation

Documentation:
- Added docs/ADR-008-UI-Implementation-Guide.md for frontend developers
  with code examples, flow diagrams, and error handling guidance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 13:23:54 +00:00
Tutus Development cf0c52980f Add Tutus Storage Interface for sovereign data storage
Create pluggable storage abstraction for government blockchain deployments:

pkg/storage/
- storage.go: Core Provider, BlockStorage, StateStorage interfaces
- config.go: Configuration for NeoFS, Local, S3 backends
- errors.go: Common storage error types
- doc.go: Package documentation with compliance guidance

pkg/storage/neofs/
- Adapter implementing Provider interface (placeholder for NeoFS SDK)

pkg/storage/local/
- Full implementation for local filesystem storage
- Content-addressed storage with SHA256 IDs
- Metadata JSON sidecar files

docs/storage.md: Comprehensive documentation covering:
- Data sovereignty compliance (GDPR, China CSL, etc.)
- Provider configuration examples
- Interface reference
- Security considerations

This enables nations to choose compliant storage backends while
maintaining a consistent API for block and state storage.
2025-12-21 06:38:32 -05:00
Tutus Development 1ff1bcf982 Update documentation for Tutus branding and professional README
- Rewrite README with professional presentation
  - Add MarketAlly as developer organization
  - Add David H. Friedel Jr. as Lead Architect
  - Comprehensive native contracts documentation
  - Architecture diagram and security features
  - Acknowledge Neo foundation in Acknowledgments section

- Remove upstream references from all documentation
  - docs/*.md updated for Tutus branding
  - CHANGELOG.md, ROADMAP.md updated
  - examples/ documentation updated
  - VM prompt changed to TUTUS-VM
2025-12-21 05:07:54 -05:00
Tutus Development 5598ed7d85 Update all imports from neo-go to tutus-chain
- Updated 3839 import statements in .go files
- Updated all go.mod and go.sum files
- Updated yml and md documentation files
- Module path: github.com/tutus-one/tutus-chain
2025-12-19 14:28:17 +00:00
Tutus Development 62bd7bb153 Initial Tutus chain fork from NeoGo
- Renamed module to github.com/tutus-one/tutus-chain
- Created Tutus network configurations
- Updated Makefile for tutus binary
- Updated service templates
- Added Tutus README
2025-12-19 14:23:04 +00:00