zeemscript
TrustMint
Open-source toolkit for compliant real-world asset tokenization on Stellar.KYC registry, compliance engine, and asset templates for invoices, property shares, and carbon credits.
Documentation snapshot
README 快照
翻译暂时拿不到。
机器翻译的项目简介,仅供参考。原文在下方,也可以直接用浏览器自带的整页翻译 (Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」)。
下面正文是项目自己的英文 README。想读全文就用浏览器自带的整页翻译: Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」; 手机浏览器一般在菜单里。
本页保存的是公开项目资料快照,阅读过程不需要连接 GitHub。
Real assets. Clear rules. Stellar Soroban.
Open-source building blocks for tokenized invoices, property shares, and carbon credits—with eligibility and transfer rules checked by smart contracts.
Open the live preview
· Get started
· Report an issue
The idea
Tokenizing an asset is only one part of the work. Applications may also need holder eligibility, transfer policies, and rules tied to an asset’s lifecycle. TrustMint brings those examples together in one inspectable Stellar Soroban repository, so builders can explore the pieces and adapt them for their own testnet prototypes.
TrustMint does not verify identities or provide legal compliance. A trusted verifier records an approval decision on-chain; identity documents and the process behind that decision remain off-chain and under the deploying project’s control.
Explore the building blocks
| Building block | What it demonstrates |
|---|---|
| KYC Registry | Authorized verifiers record approval, tier, jurisdiction, and optional expiry for a Stellar address. |
| Compliance Engine | Transfer policy examples such as pause controls, address and jurisdiction blocklists, transfer limits, holding periods, and holder caps. |
| Invoice Token | Invoice metadata with issuance, transfer, settlement, and redemption examples. |
| Property Token | Fractional property shares with cumulative per-share dividend accounting. |
| Carbon Credit Token | Credit issuance, transfer, and retirement records with beneficiary metadata. |
| RWA Reference Token | A separate SEP-41-style token example with KYC and compliance hooks and asset metadata. |
The repository also contains a React + Vite dashboard, a TypeScript SDK, deployment helpers, Rust contract tests, and local Stellar integration tests.
How a policy check flows
flowchart LR
Person[Holder or operator] --> App[Dashboard or SDK]
App --> Token[Asset contract]
Token -->|Check approval| KYC[KYC registry]
Token -->|Evaluate policy| Rules[Compliance engine]
Token -->|Apply permitted action| State[(Contract state)]
Verifier[Authorized verifier] --> KYC
Admin[Authorized admin] --> Rules
Asset contracts invoke the registry and compliance engine during relevant operations. The exact checks depend on the contract and method. An on-chain approval is a record of a verifier’s decision, not proof that an off-chain identity or compliance process is adequate.
Get started
Requirements
- Rust toolchain and the
wasm32-unknown-unknowntarget - Stellar CLI
- Node.js 20 or newer
- Docker, if you want to run the local integration suite
Build and test the contracts
From the repository root:
rustup target add wasm32-unknown-unknown
cargo build --release --target wasm32-unknown-unknown
cargo test --features testutils
Run the dashboard
cd frontend
npm install
npm run dev
The interface can load without contract IDs. Network-backed workflows need the relevant VITE_*_ID values in frontend/.env. Start from frontend/.env.example. Vite variables are bundled into the browser app, so never put private keys, secrets, or identity documents in them.
Deploy the example suite to Stellar testnet
The helper deploys the KYC registry, compliance engine, invoice token, property token, and carbon-credit token. It writes those IDs to frontend/.env. The separate RWA reference token is not included. The asset metadata in the script is placeholder data; review and replace it before every deployment, including testnet.
bash scripts/setup-identity.sh trustmint-dev
bash scripts/deploy.sh trustmint-dev
Developer commands
# Rust formatting, linting, and contract unit tests
cargo fmt --all -- --check
cargo clippy --all --all-targets -- -D warnings
cargo test --features testutils
# TypeScript SDK
npm run build:sdk
# Frontend
cd frontend
npm run lint
npm run build
The GitHub Actions workflows run formatting, lint, contract tests, WASM builds, and a local Stellar integration job. Passing CI is useful feedback; it is not a security audit or production-readiness guarantee.
Repository map
contracts/ Soroban contracts and unit tests
frontend/ React dashboard, wallet integration, and contract clients
sdk/ TypeScript clients for application developers
scripts/ Testnet identity, deployment, and verification helpers
tests/integration/ Local Stellar integration tests
docs/ Deployment and operations guidance
Project roadmap
- Verify SEP-41 compatibility of the reference token
- Expand integration coverage across asset lifecycles
- Improve deployment and operator tooling
- Publish SDK usage guides for external applications
- Commission an independent Soroban security review
Community and project docs
- Contributing guide
- Security policy
- Code of conduct
- Changelog
- Mainnet readiness guide
- MIT License
Built in the open for developers exploring real-world asset applications on Stellar.
Official distribution
获取与安装
暂未发现可确认的官方软件包地址
当前 README 快照没有出现 npm、PyPI、Crates.io、pub.dev 等官方包页链接。本站不会根据仓库名称猜测下载地址。
本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。
Before installing
使用前核验
本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。