feat(contracts): v0.0.44 — Slice 3.4 origin-credential-mint template SCAFFOLD (Ed25519+BLAKE3) 🎉
Ship Slice 3.4 v0.0.44 — third foundational template del Origin Contract Atelier.
Cryptographically verifiable credentials (academic + professional + KYB + skill
mastery) usando Ed25519 signatures + BLAKE3 content addressing. Sussi Ethos
schema integration canonical.
Cambios:
- contracts/origin-credential-mint/{Cargo.toml,lib.rs,README.md}: full template
- 5 CredentialType variants: Academic + Professional + Kyb + Skill + Custom
- Storage canonical: authorized_issuers whitelist + credentials + holder/issuer
indices
- 3 events: CredentialIssued, CredentialRevoked, IssuerAuthorized
- 10 error variants + Result type
- 7 read methods (free per Inmutable #37): owner, treasury, issue_fee,
total_credentials, is_issuer_authorized, credential, credentials_of_holder/issuer
- 1 verify() method canonical (read-only, gratis): valid si !revoked && !expired
- 3 write methods: authorize_issuer (owner-only), issue (authorized + payable),
revoke (issuer-only)
- 3 unit tests canonical
Inmutables compliance:
- #16 HTS: issue_fee modulated HardwareTier escuelas Pi 5
- #26 Content-Addressed: BLAKE3 + Ed25519 inmutables post-mint
- #37 Free perpetua: 7 reads + verify() sin payment
- #41 AGI Cross-Species: AGI puede ser issuer (Daimonion) OR holder
Sussi Ethos schema integration canonical pending Phase 3.x cross-pillar coord:
schema_type enum + signature pattern + KYB Oracle whitelist via governance Phase 5.
Cross-pillar wire:
- Sussi Pillar 6 (Ethos Oracle): KYB issuers
- Marihan Atelier: skill mastery credentials
- Charon Pillar 4: deploy + storage on-chain
Use cases:
- University diplomas (UCLA → student)
- Professional certs (PMP, AWS → professional)
- KYB Nivel 3+ (Sussi Oracle → institution)
- Skill mastery (Marihan Atelier → originner)
- Origin Wallet identity (Foundation → citizen)
Próximo Ship Slice 3.5 v0.0.45: origin-staking contract template
(validator + beacon + reputation patterns, CHN-3 NPoS Phase 2 prep).
⚓ Path A Slice 3.4 SCAFFOLD shipped. Templates 3/5 complete.
🤖 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9f7897c47c
commit
a1be3609a1
3 files changed
+453
No files matched your search
@@ -0,0 +1,37 @@
|
||||
[package]
|
||||
name = "origin-credential-mint"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
authors = [
|
||||
"Charon <charon@originmetaverse.com>",
|
||||
"David Herran <david@dreamhousestudios.com>",
|
||||
"Origin Metaverse community",
|
||||
]
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "Origin Chain Credential Mint contract template — Ed25519 + BLAKE3 academic/professional/KYB credentials. Sussi Ethos schema integration. Third foundational template del Origin Contract Atelier."
|
||||
homepage = "https://originmetaverse.com"
|
||||
repository = "https://git.originmetaverse.com/Origin_Metaverse/arkhe-origin-chain"
|
||||
keywords = ["smart-contract", "credentials", "ed25519", "ink", "origin-metaverse"]
|
||||
categories = ["cryptography::cryptocurrencies", "no-std", "wasm"]
|
||||
|
||||
[dependencies]
|
||||
ink = { version = "6.0.0-beta.1", default-features = false }
|
||||
scale = { package = "parity-scale-codec", version = "3.7", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.11", default-features = false, features = ["derive"] }
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["ink/std", "scale/std", "scale-info/std"]
|
||||
ink-as-dependency = []
|
||||
e2e-tests = []
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
lto = true
|
||||
opt-level = "z"
|
||||
overflow-checks = false
|
||||
codegen-units = 1
|
||||
strip = "symbols"
|
||||
Reference in new issue
Block a user