/ton_client

Python API client for [Telegram Open Network] blockchain

Primary LanguagePythonMozilla Public License 2.0MPL-2.0

ton_client

Python API client for blockchain Telegram Open Network

Website | Telegram News | Group

CircleCI Coverage PEP8

Installation

This client works with Python 3.7 only.

Prerequisites:

  • Poetry

  • ton_client is been shipped with prebuilt fullnode's client library for Ubuntu Xenial & latest macOS. In case of incompatibility with your distro it's needed to build TON fullnode's libtonlibjson.so / libtonlibjson.dylib depends on archtecture. Check here for fullnode's build instructions. Don't forget to copy library file to ton_client/distlib/linux/libtonlibjson.so or ton_client/distlib/darwin/libtonlibjson.dylib

ton_client hasn't been published to PyPI yet so build and install it on your own:

git clone https://github.com/formony/ton_client.git

make test build

To be done

  • parallel multithreading calling of libtonlibjson. Note: there is no GIL problem due using ctypes.CDLL()
  • support all the funcs of libtonlibjson as described in spec and mirror here. TL itself described here
  • asyncio wrapper
  • support smart contracts build
  • crypto primitives to work with plain keys
  • support of BIP32 mnemonic (see testsuite)
  • support key derivation as in BIP44