tutus-chain/pkg/core/state
Tutus Development 961c17a0cc Add Ancora native contract for off-chain data anchoring
Implement ADR-004 Phase 1 - the Ancora (Latin for "anchor") contract
provides Merkle root anchoring for off-chain data with proof verification:

Core Features:
- Data root management: Track Merkle roots per VitaID and DataType
  (Medical, Education, Investment, Documents, Custom)
- Provider registry: Committee-managed authorization for data providers
  with rate limiting and cooldown periods
- Proof verification: Verify Merkle proofs against anchored roots
  supporting SHA256, Keccak256, and Poseidon algorithms
- GDPR erasure: Right-to-be-forgotten workflow with pending/confirmed/denied
  status and configurable grace periods
- Data portability: Generate attestations for cross-system data transfer

Contract Methods:
- registerProvider/revokeProvider: Committee authorization for providers
- updateDataRoot: Anchor new Merkle root with version tracking
- verifyProof: Validate leaf inclusion against anchored root
- requestErasure/confirmErasure/denyErasure: GDPR erasure workflow
- generatePortabilityAttestation: Data portability support

Cross-Contract Integration:
- Vita: Identity verification via ExistsInternal/OwnerOfInternal
- Tutus: Committee authority for provider management

State Types (pkg/core/state/state_anchors.go):
- RootInfo: Merkle root metadata with version and algorithm
- ErasureInfo: GDPR erasure request tracking
- ProviderConfig: Authorized provider configuration
- StateAnchorsConfig: Global contract settings
- Enums: DataType, TreeAlgorithm, ErasureStatus

Contract ID: -27

Tests (15 test cases):
- Configuration and query tests
- Provider registration/revocation tests
- Authorization and error handling tests
- Data type and algorithm validation tests

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 12:42:05 +00:00
..
annos.go Add Annos lifespan contract and Eligere voting age integration 2025-12-21 00:55:29 +00:00
collocatio.go Complete Collocatio native contract for PIO/EIO/CIO investments 2025-12-21 04:18:23 +00:00
contract.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
contract_invocation.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
contract_invocation_test.go Complete Tutus rebranding - remove all Neo dependencies 2025-12-21 06:25:15 -05:00
contract_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
deposit.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
deposit_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
eligere.go Add Eligere native contract for democratic voting 2025-12-20 06:30:43 +00:00
lex.go Add Lex native contract for universal law and rights framework 2025-12-20 05:33:26 +00:00
mpt_root.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
mpt_root_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_state.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_state_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
notification_event.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
notification_event_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
opus.go Add Opus native contract for AI workforce integration 2025-12-20 08:51:48 +00:00
oracle.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
oracle_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
palam.go Add Palam native contract for programmed transparency 2025-12-20 09:21:25 +00:00
pons.go Normalize line endings in security remediation files 2025-12-21 04:31:25 -05:00
role_registry.go Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
salus.go Normalize line endings in security remediation files 2025-12-21 04:31:25 -05:00
scire.go Add Scire native contract for universal education 2025-12-20 07:25:08 +00:00
sese.go Add Sese native contract for life planning 2025-12-20 08:54:28 +00:00
state_anchors.go Add Ancora native contract for off-chain data anchoring 2025-12-23 12:42:05 +00:00
storage_item.go Initial Tutus chain fork from NeoGo 2025-12-19 14:23:04 +00:00
tokens.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
tokens_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
tribute.go Normalize line endings in security remediation files 2025-12-21 04:31:25 -05:00
validator.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
vita.go Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
vts.go Add VTS PersonToken integration and age-restricted spending 2025-12-20 03:16:33 +00:00