{"id":49636405,"url":"https://github.com/canton-network/wallet-gateway","last_synced_at":"2026-05-13T13:02:39.812Z","repository":{"id":296863116,"uuid":"993334202","full_name":"canton-network/wallet-gateway","owner":"canton-network","description":"Wallet Gateway","archived":false,"fork":false,"pushed_at":"2026-05-05T07:57:57.000Z","size":13344,"stargazers_count":34,"open_issues_count":110,"forks_count":32,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-05-05T09:36:43.662Z","etag":null,"topics":["dapp","dapp-developers","web3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canton-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-30T15:58:05.000Z","updated_at":"2026-05-05T00:15:33.000Z","dependencies_parsed_at":"2025-08-29T20:10:00.670Z","dependency_job_id":"41a963cc-0df6-4186-9757-a8d46e8a6a28","html_url":"https://github.com/canton-network/wallet-gateway","commit_stats":null,"previous_names":["hyperledger-labs/splice-wallet-kernel","canton-network/wallet-gateway"],"tags_count":1429,"template":false,"template_full_name":null,"purl":"pkg:github/canton-network/wallet-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canton-network%2Fwallet-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canton-network%2Fwallet-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canton-network%2Fwallet-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canton-network%2Fwallet-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canton-network","download_url":"https://codeload.github.com/canton-network/wallet-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canton-network%2Fwallet-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32654618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dapp","dapp-developers","web3"],"created_at":"2026-05-05T15:02:08.599Z","updated_at":"2026-05-13T13:02:39.805Z","avatar_url":"https://github.com/canton-network.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wallet Gateway\n\nA TypeScript framework for building wallet integrations on the [Canton Network](https://www.canton.network/). It provides the **Wallet Gateway** (server and browser extension), the **dApp SDK**, the **Wallet SDK**, and a set of shared core modules.\n\n## Architecture\n\n```\n┌─────────────┐      dApp API (CIP-103)    ┌──────────────────┐     Ledger API      ┌──────────────────┐\n│   Your dApp │ ◄────────────────────────► │  Wallet Gateway  │ ◄─────────────────► │ Canton Validator │\n│ (dApp SDK)  │    (HTTP / postMessage)    │                  │                     │                  │\n└─────────────┘                            │  ┌────────────┐  │     Signing         └──────────────────┘\n       │                                   │  │  User API  │  │\n       │      User interactions            │  │  User UI   │  │     ┌──────────────────┐\n       └──────────────────────────────────►│  └────────────┘  │ ◄──►│ Signing Provider │\n              (User UI / User API)         │                  │     │ (Participant,    │\n                                           └──────────────────┘     │  Fireblocks, …)  │\n                                                                    └──────────────────┘\n```\n\n- **dApp → Wallet Gateway**: dApps use the dApp SDK to call the **dApp API**.\n- **User → Wallet Gateway**: Users manage wallets and approve transactions via the **User UI**.\n- **Wallet Gateway → Canton / Signing**: The Gateway authenticates to validator Ledger APIs and forwards signing requests to the configured signing provider.\n\n## dApp API (CIP-103)\n\nThe **dApp API** is a JSON-RPC 2.0 interface specified by [CIP-103](https://github.com/canton-foundation/cips/blob/main/cip-0103/cip-0103.md). It defines how dApps communicate with wallet providers on the Canton Network. Key methods include:\n\nThe dApp SDK (`@canton-network/dapp-sdk`) implements this protocol and adds a higher-level API, multi-transport support, and an [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193)-style provider (`window.canton`).\n\n## Wallet SDK\n\nThe **Wallet SDK** (`@canton-network/wallet-sdk`) is a TypeScript SDK for wallet providers and exchanges integrating directly with the Canton Network.\nUnlike the dApp SDK (which talks to a Wallet Gateway), the Wallet SDK operates at a lower level — authenticating to synchronizers, allocating parties with external keypairs, reading active contracts, and signing and submitting transactions.\n\nKey capabilities:\n\n- Authenticate and connect to a Canton synchronizer\n- Allocate parties with an external keypair\n- Read active contracts on the ledger\n- Decode and validate prepared transactions\n- Sign and submit transactions via the Ledger API\n- Integrate with the Token Standard\n\nSee the [Wallet SDK README](sdk/wallet-sdk) and the [integration guide](https://docs.digitalasset.com/integrate/devnet/index.html) for usage details.\n\n## Project Structure\n\n### Wallet Gateway\n\nTwo implementations of the Wallet Gateway, both exposing the same dApp API and User API:\n\n| Package                                    | Path                                                   | Description                                                                                                                                       |\n| ------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `@canton-network/wallet-gateway-remote`    | [`wallet-gateway/remote`](wallet-gateway/remote)       | Server-side implementation over HTTP (Express.js). Connects to SQL stores and external signing providers.                                         |\n| `@canton-network/wallet-gateway-extension` | [`wallet-gateway/extension`](wallet-gateway/extension) | [NOT IMPLEMENTED YET] Client-side implementation as a Manifest V3 browser extension. Uses browser storage for persistence and in-browser signing. |\n\n### SDKs\n\n| Package                      | Path                               | Description                                                                                                           |\n| ---------------------------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------- |\n| `@canton-network/dapp-sdk`   | [`sdk/dapp-sdk`](sdk/dapp-sdk)     | Browser SDK for dApp development. Implements the CIP-103 dApp API with multi-transport support (HTTP, `postMessage`). |\n| `@canton-network/wallet-sdk` | [`sdk/wallet-sdk`](sdk/wallet-sdk) | SDK for wallet providers and exchanges to integrate with Canton and the Token Standard.                               |\n\n### Core Modules\n\nShared libraries used by the Wallet Gateway, SDKs, and signing providers:\n\n| Package                       | Path                                                         | Description                                                             |\n| ----------------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------- |\n| **Store**                     |                                                              |                                                                         |\n| `core-wallet-store`           | [`core/wallet-store`](core/wallet-store)                     | Store interface for wallets, sessions, networks, IDPs, and transactions |\n| `core-wallet-store-sql`       | [`core/wallet-store-sql`](core/wallet-store-sql)             | SQL implementation (SQLite / PostgreSQL) via Kysely                     |\n| `core-wallet-store-inmemory`  | [`core/wallet-store-inmemory`](core/wallet-store-inmemory)   | In-memory implementation for testing and development                    |\n| **Signing**                   |                                                              |                                                                         |\n| `core-signing-lib`            | [`core/signing-lib`](core/signing-lib)                       | Core library and interfaces for signing driver implementations          |\n| `core-signing-store-sql`      | [`core/signing-store-sql`](core/signing-store-sql)           | SQL persistence for signing keys and transactions                       |\n| `core-signing-internal`       | [`core/signing-internal`](core/signing-internal)             | Internal (wallet-kernel) signing driver using Ed25519                   |\n| `core-signing-participant`    | [`core/signing-participant`](core/signing-participant)       | Canton participant-managed signing driver                               |\n| `core-signing-fireblocks`     | [`core/signing-fireblocks`](core/signing-fireblocks)         | Fireblocks signing driver integration                                   |\n| `core-signing-blockdaemon`    | [`core/signing-blockdaemon`](core/signing-blockdaemon)       | Blockdaemon signing driver integration                                  |\n| **RPC \u0026 Transport**           |                                                              |                                                                         |\n| `core-types`                  | [`core/types`](core/types)                                   | Shared types and transport-agnostic parsers                             |\n| `core-rpc-transport`          | [`core/rpc-transport`](core/rpc-transport)                   | RPC transport implementations                                           |\n| `core-rpc-errors`             | [`core/rpc-errors`](core/rpc-errors)                         | Standardized JSON-RPC error types                                       |\n| `core-rpc-generator`          | [`core/rpc-generator`](core/rpc-generator)                   | Code generator for JSON-RPC interfaces                                  |\n| **Auth \u0026 Ledger**             |                                                              |                                                                         |\n| `core-wallet-auth`            | [`core/wallet-auth`](core/wallet-auth)                       | Authentication middleware and user management (JWT, OAuth)              |\n| `core-ledger-client`          | [`core/ledger-client`](core/ledger-client)                   | TypeScript Canton Ledger API client (generated from OpenAPI)            |\n| `core-ledger-client-types`    | [`core/ledger-client-types`](core/ledger-client-types)       | Type definitions for the Ledger API client                              |\n| **UI \u0026 Clients**              |                                                              |                                                                         |\n| `core-wallet-ui-components`   | [`core/wallet-ui-components`](core/wallet-ui-components)     | Reusable Lit web components for wallet UIs                              |\n| `core-wallet-user-rpc-client` | [`core/wallet-user-rpc-client`](core/wallet-user-rpc-client) | Generated RPC client for the User API                                   |\n| `core-wallet-dapp-rpc-client` | [`core/wallet-dapp-rpc-client`](core/wallet-dapp-rpc-client) | Generated RPC client for the dApp API                                   |\n| **Splice**                    |                                                              |                                                                         |\n| `core-splice-client`          | [`core/splice-client`](core/splice-client)                   | Client for Splice network services                                      |\n| `core-splice-provider`        | [`core/splice-provider`](core/splice-provider)               | Splice network provider integration                                     |\n| `core-token-standard`         | [`core/token-standard`](core/token-standard)                 | Canton Token Standard implementation                                    |\n\n### Examples\n\n| Path                                       | Description                                                       |\n| ------------------------------------------ | ----------------------------------------------------------------- |\n| [`examples/ping`](examples/ping)           | Minimal dApp demonstrating connect, prepare, and execute flows    |\n| [`examples/portfolio`](examples/portfolio) | Portfolio dApp showcasing account listing and transaction history |\n\n### Documentation\n\n| Path                                                             | Description                                       |\n| ---------------------------------------------------------------- | ------------------------------------------------- |\n| [`docs/dapp-building`](docs/dapp-building)                       | dApp building guide (dApp SDK, Wallet Gateway)    |\n| [`docs/wallet-integration-guide`](docs/wallet-integration-guide) | Step-by-step integration guide with code examples |\n| [`docs/CONTRIBUTING.md`](docs/CONTRIBUTING.md)                   | Contribution guidelines                           |\n| [`docs/GLOSSARY.md`](docs/GLOSSARY.md)                           | Terminology reference                             |\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 20+\n- Yarn 4 (Corepack)\n- A running Canton participant node (or use the included local setup)\n\n### Quick Start\n\n```bash\n# Install dependencies\nyarn install\n\n# Build everything\nyarn build:all\n\n# Start all services (Wallet Gateway, mock OAuth, Example dApps, etc.)\nyarn start:all\n\n# Start a local Canton Participant Node\nyarn start:canton\n```\n\nActive processes can be monitored with:\n\n```bash\nyarn pm2 list\n```\n\nTo stop everything:\n\n```bash\nyarn stop:all\n```\n\n### Running the Browser Extension\n\nTBD.\n\n## Contributing\n\nFor information about contributing, please refer to the [Contributing Guide](docs/CONTRIBUTING.md).\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanton-network%2Fwallet-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanton-network%2Fwallet-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanton-network%2Fwallet-gateway/lists"}