Skip to content

Repository files navigation

Token Core Monorepo

imToken 10th Anniversary

🎉 imToken 10th Anniversary invites you to AI co-create: your wallet, under your control
🛠️ Build your wallet with tcx-wasm

🌐 中文 README

This repository is a Rust workspace for imToken and imKey wallet core libraries. It keeps token-core and imkey-core on one Rust toolchain and one dependency graph, so their generated libraries can be integrated into mobile clients without Rust version conflicts.

Components

  • token-core: wallet keystore management, blockchain signing, and C-compatible APIs for mobile clients.
  • imkey-core: imKey hardware wallet communication, device management, and secure signing without exposing private keys to the mobile client.
  • publish: Android packaging and publishing configuration.
  • script: local and CI build scripts for Android and iOS artifacts.

Getting Started

git clone git@github.com:consenlabs/token-core-monorepo.git
cd token-core-monorepo
cargo build
cargo test

This workspace uses the Rust toolchain pinned in rust-toolchain.toml.

Common Commands

# Build token-core only
make build-tcx

# Run token-core tests
make test-tcx

# Run imkey-core tests
make test-ikc

make test-tcx and make test-ikc set KDF_ROUNDS=1 to keep test execution fast.

Packages

Security Report

License

Copyright 2023 imToken PTE. LTD.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Monorepo which contains token-core and imkey-core

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages