tutus-chain/pkg
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
..
compiler Fix compiler neogointernal rename and GAS to Lub branding 2025-12-21 09:18:57 -05:00
config Fix compiler neogointernal rename and GAS to Lub branding 2025-12-21 09:18:57 -05:00
consensus Fix test failures from Tutus/Lub rename and Vita integration 2025-12-22 03:04:48 -05:00
core Implement ADR-008 on-chain security features 2025-12-23 13:23:54 +00:00
crypto Complete Tutus rebranding - remove all Neo dependencies 2025-12-21 06:25:15 -05:00
encoding Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
interop Rebrand token symbols: TUTUS->TUT, update display names 2025-12-21 13:03:49 -05:00
io Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
network Fix test failures from Tutus/Lub rename and Vita integration 2025-12-22 03:04:48 -05:00
rpcclient Update test fixtures for TUT/LUB token symbols 2025-12-22 00:42:59 -05:00
services Add block 14 and GAS bounty entries to server_test.go 2025-12-22 12:41:18 -05:00
smartcontract Complete Tutus rebranding - remove all Neo dependencies 2025-12-21 06:25:15 -05:00
storage Add BlockStorage and StateStorage to local adapter with tests 2025-12-21 06:58:20 -05:00
tutusrpc Complete Tutus rebranding - remove all Neo dependencies 2025-12-21 06:25:15 -05:00
tutustest Complete Tutus/Lub branding in test files 2025-12-21 08:40:16 -05:00
util Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
vm Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
wallet Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00