Skip to content

Latest commit

 

History

63 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bible Contract - Soroban Smart Contract

License: MIT Rust Soroban Crates.io

🌐 Languages / Idiomas: English | Português (Brasil)

Bible Contract (contrato_biblia) is a Rust library built to deploy a decentralized smart contract on the Stellar Soroban platform. It manages text authenticity using Merkle Trees per Version, immutable reading proofs, a social community feed of reflections, reward tokens (TAL), and on-chain Soulbound credentials.


📚 Complete Documentation


✨ Smart Contract Features

✅ Text Authenticity via Merkle Tree: Stores 1 Merkle Root SHA-256 (32 bytes) per complete Bible version (ARC, ACF, KJV, ASV, RVA), reducing Soroban storage costs by 99.9%.
✅ Off-Chain Automatic Ingestion: High-performance Rust CLI tool (scripts/ingestor) to process Public Domain datasets and generate cryptographic proofs.
✅ Proof of Reading: Immutable on-chain reading progress tracking system on Stellar.
✅ Reward System: Tracks reading progress and emits events (for off-chain backend processing) to distribute tokens (TAL) upon completing a book.
✅ On-Chain Certificates & Categorization: Canonical structure for all 66 Bible books and issuance of non-transferable Soulbound Credentials (Books, Categories, Testaments, or Complete Bible).
✅ Personal Reflections: Users can write and store public or private reflections on Bible passages.
✅ Social Engagement: Like and comment system to promote community interaction.
✅ Comment Management: Users can add and delete their own comments.
✅ Moderation: Status system for reflection management and moderation.
✅ Comprehensive Tests: High unit test coverage across all major features (8/8 passing).
✅ Type-Safe Documentation: Fully documented Rust code (#![no_std]) with strongly typed structures.


⚡ Installation via Cargo

Add this library to your Rust / Soroban project:

[dependencies]
contrato_biblia = "1.1.1"

Or via CLI:

cargo add contrato_biblia

🚀 Quickstart Guide

# Run unit test suite (8/8 passing)
cargo test

# Build WebAssembly contract
stellar contract build

# Generate Merkle Trees and Cryptographic Proofs via Rust CLI
cargo run --manifest-path scripts/ingestor/Cargo.toml

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Uma biblioteca Rust para um smart contract na blockchain Stellar (Soroban) focado em uma aplicação da Bíblia Sagrada.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages