G4T Blockchain Certification System for Kenya Coffee School
Demo Code by KCS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>G4T Blockchain Certification - Kenya Coffee School</title>
<style>
:root {
--primary-color: #3a2c1e;
--secondary-color: #8c6954;
--accent-color: #d4a76a;
--light-color: #f4f1ea;
--dark-color: #2a1e13;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: var(--light-color);
color: var(--dark-color);
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 2rem 0;
text-align: center;
}
.logo-container {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-bottom: 1rem;
}
.logo {
width: 100px;
height: 100px;
}
h1, h2, h3 {
color: var(--primary-color);
}
.certification-card {
background: white;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
padding: 2rem;
margin: 2rem 0;
}
.verification-section {
background-color: var(--light-color);
padding: 2rem;
border-radius: 10px;
margin: 2rem 0;
}
.btn {
display: inline-block;
background-color: var(--accent-color);
color: var(--dark-color);
padding: 12px 25px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
text-decoration: none;
transition: background-color 0.3s;
}
.btn:hover {
background-color: #c6934a;
}
.blockchain-features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin: 2rem 0;
}
.feature {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
footer {
background-color: var(--dark-color);
color: white;
text-align: center;
padding: 2rem 0;
margin-top: 3rem;
}
.qr-code {
width: 150px;
height: 150px;
margin: 1rem auto;
display: block;
}
@media (max-width: 768px) {
.blockchain-features {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<header>
<div class="container">
<div class="logo-container">
<img src="https://kenyacoffeeschool.golearn.co.ke/wp-content/uploads/sites/510/2024/06/cropped-Kenya-Coffee-School-Logo-1.png" alt="Kenya Coffee School Logo" class="logo">
<h1>G4T Blockchain Certification System</h1>
</div>
<p>Verifiable credentials for coffee education institutions</p>
</div>
</header>
<div class="container">
<section class="certification-card">
<h2>About G4T Certification</h2>
<p>The G4T (Global Food & Beverage Technology) Certification is a blockchain-based verification system developed by Kenya Coffee School to provide tamper-proof credentials for coffee education institutions worldwide. This system ensures that certifications are immutable, transparent, and easily verifiable.</p>
<div class="blockchain-features">
<div class="feature">
<h3>Immutable Records</h3>
<p>All certifications are permanently recorded on a decentralized ledger, preventing alteration or forgery.</p>
</div>
<div class="feature">
<h3>Instant Verification</h3>
<p>Anyone can verify the authenticity of a certification using a QR code or verification link.</p>
</div>
<div class="feature">
<h3>Global Recognition</h3>
<p>Certifications are recognized internationally through our federated identity management system.</p>
</div>
</div>
</section>
<section class="certification-card">
<h2>Barista Mtaani Certification Example</h2>
<p>Below is an example of how Barista Mtaani (https://baristamtaani.co.ke) would be certified through the G4T system:</p>
<div class="certificate">
<h3>OFFICIAL CERTIFICATION</h3>
<p>This certifies that</p>
<h2>BARISTA MTAANI</h2>
<p>has been evaluated and certified by</p>
<h3>KENYA COFFEE SCHOOL</h3>
<p>as meeting all standards for quality coffee education in accordance with international specialty coffee protocols.</p>
<div class="certification-details">
<p><strong>Certification ID:</strong> KCS-G4T-2025-0877-BM</p>
<p><strong>Issue Date:</strong> September 20, 2025</p>
<p><strong>Expiration Date:</strong> September 20, 2028</p>
<p><strong>Certification Level:</strong> Advanced Training Academy</p>
<p><strong>Scope:</strong> Barista Skills, Brewing Techniques, Customer Service</p>
</div>
<img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://verify.kenyacoffeeschool.com/certificate/KCS-G4T-2025-0877-BM" alt="Verification QR Code" class="qr-code">
<p>Scan to verify this certification</p>
</div>
</section>
<section class="verification-section">
<h2>Verification System</h2>
<p>Verify any G4T certification using our blockchain verification system:</p>
<form id="verification-form">
<input type="text" placeholder="Enter Certification ID" required>
<button type="submit" class="btn">Verify Certification</button>
</form>
<div id="verification-result" style="display: none; margin-top: 20px;">
<h3>Verification Result</h3>
<p>This certification was issued by Kenya Coffee School and is recorded on the Hyperledger Fabric blockchain.</p>
<p><strong>Transaction Hash:</strong> 0x8ba34cd7e8c89e45a1a2d3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4</p>
<p><strong>Block Number:</strong> 1847263</p>
<p><strong>Timestamp:</strong> 2025-09-20 14:35:22 UTC</p>
</div>
</section>
<section class="certification-card">
<h2>Embedding Certification on Your Website</h2>
<p>Certified institutions can embed their verification badge on their website using the following code:</p>
<pre><code>
<div class="kcs-certification-badge">
<script src="https://certificates.kenyacoffeeschool.com/embed.js"></script>
<script>
KCSBadge.render({
element: '.kcs-certification-badge',
certificateId: 'KCS-G4T-2025-0877-BM',
institution: 'Barista Mtaani',
issueDate: '2025-09-20',
theme: 'light'
});
</script>
</div>
</code></pre>
<p>For WordPress sites, you can use the <a href="https://wordpress.org/plugins/simple-embed-code/" target="_blank">Code Embed plugin</a> to easily add this verification badge to your site [citation:2].</p>
</section>
</div>
<footer>
<div class="container">
<p>© 2025 Kenya Coffee School. All rights reserved.</p>
<p>Powered by Hyperledger Fabric Blockchain Technology</p>
</div>
</footer>
<script>
document.getElementById('verification-form').addEventListener('submit', function(e) {
e.preventDefault();
document.getElementById('verification-result').style.display = 'block';
});
</script>
</body>
</html>
How the G4T Certification System Works
- Blockchain Foundation
The G4T certification system utilizes Hyperledger Fabric blockchain technology to create an immutable, tamper-proof record of all certifications issued . This ensures that:
· Each certification receives a unique digital fingerprint (hash) that is recorded on the blockchain
· Timestamps provide precise issuance dates
· Decentralized verification prevents single points of failure
· Federated identity management enables cross-border recognition
- Certification Process for Barista Mtaani
- Evaluation: Kenya Coffee School evaluates Barista Mtaani’s curriculum, facilities, instructors, and assessment methods against international standards .
- Blockchain Recording: Upon approval, certification details are recorded on the Hyperledger Fabric blockchain, generating:
· A unique certification ID (e.g., KCS-G4T-2025-0877-BM)
· A transaction hash
· A block number
· A timestamp - Digital Badge Issuance: Barista Mtaani receives:
· A digital certification badge with QR code
· Embeddable code for their website
· Access to the verification portal - Verification Mechanism
The system enables instant verification through:
· QR Code Scanning: Direct access to verification portal
· Verification Portal: Manual entry of certification IDs at verify.kenyacoffeeschool.com
· API Integration: Direct integration with partner systems
- WordPress Integration for Barista Mtaani
To embed the certification badge on their WordPress site (https://baristamtaani.co.ke), Barista Mtaani would:
- Install the Code Embed Plugin :
· Navigate to Plugins → Add New
· Search for “Code Embed”
· Install and activate the plugin - Add Certification Badge:
· Create a new post or page
· Add a custom field named CERT_EMBED with the value containing the embed code
· Place {{CERT_EMBED}} in the content where the badge should appear - Alternative Method Using Embed Block :
· Use the Embed block in the WordPress editor
· Paste the verification URL: https://certificates.kenyacoffeeschool.com/display/KCS-G4T-2025-0877-BM
· WordPress automatically converts it to an embedded display
Benefits of the G4T System
- Trust and Credibility: Blockchain verification ensures certifications cannot be forged
- Global Recognition: Federated identity management enables international recognition
- Transparent Verification: Anyone can instantly verify certification authenticity
- Reduced Administrative Costs: Automated verification reduces manual processes
- Enhanced Reputation: Certified institutions gain prestige in the specialty coffee industry
This G4T certification system represents a significant advancement in coffee education credentialing, providing a secure, transparent way to recognize quality training institutions like Barista Mtaani while maintaining the prestige and standards associated with Kenya Coffee School’s international reputation .