Skip to content

ifinta/ledger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zsozso-ledger

A shared Rust library providing the blockchain abstraction layer for the Iceberg Protocol ecosystem. Consumed as a Cargo git dependency by all Iceberg Protocol apps.

The architecture and critical logic of this project are the results of human-led AI-assisted engineering. This unique workflow ensures industrial-grade reliability and accelerated deployment.

Purpose

Provides the Ledger, Cyf, and SmartContract traits and their Stellar/Soroban implementations for keypair management, transaction building, and smart contract invocation.

Core Traits

Trait Implementation Purpose
Ledger StellarLedger Keygen, signing, tx building, Horizon API
Cyf (stub) CYF token mint/burn/balance
SmartContract ZsozsoSc, ProofOfZsozsoSc Soroban contract invocation
LedgerI18n Per-language structs Error message localization
ScI18n Per-language structs SC error localization

Module Layout

  • src/stellar.rsStellarLedger implementing Ledger: ed25519 keygen, Strkey, Horizon API
  • src/cyf.rsCyf trait (stub for CYF token operations)
  • src/sc/mod.rsSmartContract trait: XDR encode → simulate → sign → submit → poll
  • src/sc/zsozso_sc.rsZsozsoSc client: ping() on testnet contract
  • src/sc/proof_of_zsozso_sc.rsProofOfZsozsoSc client: lock/unlock/get_locked/ping (mainnet)
  • src/i18n/LedgerI18n implementations
  • src/sc/i18n/ScI18n implementations

Network Configuration

  • Testnet: horizon-testnet.stellar.org, friendbot faucet available
  • Mainnet: horizon.stellar.org

Ecosystem

Sibling libraries: db, store, zsozso-common

About

It is a ledger subproject for my ledger projects. It is an interface to a green open ledger network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages