Peymate is a project that enables Telegram mini app–based login and TON wallet transactions on the Internet Computer (IC).
The goal of the project is to combine Internet Identity delegation, threshold Schnorr signing, and TON blockchain interoperability, allowing users to log in with Internet Identity and send TON directly from a Telegram mini app.
-
Internet Identity Login with Delegation
Secure login flow using session identities and delegated principals. -
TON Wallet Address Generation
Uses Threshold Schnorr signatures (ed25519) to generate TON-compatible addresses from Internet Identity. -
Telegram Mini App Integration
Provides a friendly UI for login pop-ups, wallet address display, and transaction confirmation. -
Transaction Signing & Transfer
Sign TON transactions inside IC canisters and send them via TON RPC HTTPS outcalls. -
Security & Session Management
Supports timebound sessions, delegation checks, and signature verification for enhanced safety.
The system consists of:
- Telegram Mini App (Canister) – User-facing entry point for login and transactions.
- Frontend Internet Identity (Canister) – Handles delegation requests and session identity setup.
- IC Internet Identity – Secure and private interactions. Internet Identity derives a new identity.
- Backend Canister – Coordinates signing, delegation storage, and TON message preparation.
- IC Management Canister – Provides cryptographic functions (
sign_with_schnorr, public key derivation). - TON RPC – External endpoint to broadcast signed transactions.
- Generate session identity and delegation via Internet Identity.
- Associate Telegram user with delegated identity.
- Derive TON wallet address from Schnorr public key.
- Display wallet address in Telegram mini app.
- Compose transaction message inside the Telegram mini app.
- Pass message to backend canister for signing via IC Management Canister.
- Verify and send signed message to TON RPC via HTTPS outcall.
- IC Internet Identity – Docs
- Threshold Schnorr Signatures – DFINITY spec
- TON RPC – TON developer portal
Contributions are welcome! Please open issues or submit PRs with improvements.
Suggestions for enhanced security, new features, or additional wallet integrations are encouraged.
This project is licensed under the MIT License. See the LICENSE file for details.

.png)
.png)