Skip to main content

Official Python library for Tencoin – HD wallets, SegWit, BIP39, RPC client

Project description

Tencoinlib

Official Python library for Tencoin – HD wallets, transactions, RPC client, and message signing.

Features

  • HD Wallets: BIP-39 (seed phrases) + BIP-84 (SegWit native addresses)
  • Full BIP-32 Support: Standard xprv/xpub extended keys with master/account-level derivation
  • Watch-Only Wallets: Create wallets directly from xpub (no seed/private key required)
  • Multiple Address Types:
    • SegWit v0 (P2WPKH): Native SegWit addresses (tc1q...)
    • Legacy P2PKH: Pay-to-pubkey-hash addresses (T...)
    • Legacy P2SH: Pay-to-script-hash addresses (M...)
    • P2WSH: SegWit script addresses (tc1q... with 32-byte program)
  • Custom Scripts: Support for multisig and custom redeem/witness scripts
  • Transaction Signing: Automatic detection and signing for SegWit (BIP-143) and Legacy (P2PKH/P2SH) inputs
  • Message Signing: Bitcoin Core–compatible message signing and verification with public key recovery
    • Key Derivation:
    • BIP-84 (P2WPKH): m/84'/5353'/0'/0/0 for native SegWit addresses
    • BIP-44 (P2PKH): m/44'/5353'/0'/0/0 for legacy P2PKH addresses
    • Additional custom BIP-32 paths supported via the BIP-32 API
  • Seed Phrases: 12–24 word English mnemonics (full BIP-39 compliance)
  • Wallet Recovery: From mnemonic phrases – compatible with standard BIP-39 implementations
  • Full BIP-39 Compatibility: Mnemonics generated by other standard libraries (e.g., bip-utils, Electrum, MetaMask, Ian Coleman's tool) are validated and recovered
  • Secure Seed Generation: PBKDF2-HMAC-SHA512 with official 2048-word English wordlist

Installation

pip install tencoinlib

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tencoinlib-0.1.1.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tencoinlib-0.1.1-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file tencoinlib-0.1.1.tar.gz.

File metadata

  • Download URL: tencoinlib-0.1.1.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for tencoinlib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4c4e6276c5ed1625fabbf03675b3e0c093d4cecc2fb78bcf9bec067514a619ac
MD5 e54b1856217cb12efe86cc0385d17e43
BLAKE2b-256 266c1f1d2e98557ec5cd726d0f27b59e2fede4cced170821c0d3000d94cb237d

See more details on using hashes here.

File details

Details for the file tencoinlib-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tencoinlib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for tencoinlib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea14d764680662a718ceb4b0b073c9ed82abaaac680f1d3e7874925446223af8
MD5 24296b5bd2e5ab799907a52bc054496f
BLAKE2b-256 640bea0071b0b945124af1515561e5817dd77d6268835efdf965df041f4ba967

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page