tutus-chain/pkg/core/native
Tutus Development 1d96eb7a6e Add Scire native contract for universal education
Implement the Scire (Latin for "to know/learn") contract providing
universal education infrastructure for citizens:

Core Features:
- Education accounts: One per Vita holder (soul-bound learning account)
- Learning credits: Annual allocation and spending system
- Certifications: Skill verification with expiry/renewal support
- Enrollments: Program enrollment with credit allocation

Contract Methods:
- Account management: createAccount, getAccount, allocateCredits, getCredits
- Enrollment: enroll, completeEnrollment, withdrawEnrollment, getActiveEnrollment
- Certification: issueCertification, revokeCertification, renewCertification
- Query: verifyCertification, hasCertification, getConfig

Cross-Contract Integration:
- Vita: Account tied to Vita token (one person = one account)
- Lex: Checks RightEducation via HasRightInternal (enforcement logging)
- RoleRegistry: RoleEducator (ID 20) for institutional authorization
- NEO: Committee authority for credit allocation

State Types (pkg/core/state/scire.go):
- EducationAccount, Certification, Enrollment, ScireConfig
- Status enums for each entity type

Technical Details:
- Contract ID: -18
- Storage prefixes: 0x01-0x02 (accounts), 0x10-0x13 (certs), 0x20-0x23 (enrolls)
- Fix: Use (uint64, bool) return for getVitaIDByOwner to properly handle
  TokenID 0 (first registered Vita) instead of using 0 as sentinel value

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 07:25:08 +00:00
..
native_test Add Scire native contract for universal education 2025-12-20 07:25:08 +00:00
nativehashes Add Scire native contract for universal education 2025-12-20 07:25:08 +00:00
nativeids Add Scire native contract for universal education 2025-12-20 07:25:08 +00:00
nativenames Add Scire native contract for universal education 2025-12-20 07:25:08 +00:00
nativeprices Initial Tutus chain fork from NeoGo 2025-12-19 14:23:04 +00:00
noderoles Initial Tutus chain fork from NeoGo 2025-12-19 14:23:04 +00:00
compatibility_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
contract.go Add Scire native contract for universal education 2025-12-20 07:25:08 +00:00
contract_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
crypto.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
crypto_blspoints.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
crypto_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
designate.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
doc.go Initial Tutus chain fork from NeoGo 2025-12-19 14:23:04 +00:00
eligere.go Fix Eligere executeLawAmendment to always create Federal-level laws 2025-12-20 06:35:00 +00:00
federation.go Add asylum registry and naturalization for humanitarian protection 2025-12-20 04:55:56 +00:00
interop.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
invocation_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
ledger.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
lex.go Add Eligere native contract for democratic voting 2025-12-20 06:30:43 +00:00
management.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
management_neotest_test.go Add Eligere native contract for democratic voting 2025-12-20 06:30:43 +00:00
management_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_gas.go Add asylum registry and naturalization for humanitarian protection 2025-12-20 04:55:56 +00:00
native_neo.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_neo_candidate.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_neo_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_nep17.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
nativenames_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
neo_types.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
notary.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
oracle.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
oracle_types.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
oracle_types_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
policy.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
policy_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
role_registry.go Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
scire.go Add Scire native contract for universal education 2025-12-20 07:25:08 +00:00
std.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
std_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
treasury.go Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
util.go Add VTS PersonToken integration and age-restricted spending 2025-12-20 03:16:33 +00:00
vita.go Add Eligere native contract for democratic voting 2025-12-20 06:30:43 +00:00
vts.go Integrate Lex rights enforcement into VTS and Vita contracts 2025-12-20 05:43:31 +00:00