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, and RPC client.

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
    • 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.0.tar.gz (38.0 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.0-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tencoinlib-0.1.0.tar.gz
  • Upload date:
  • Size: 38.0 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.0.tar.gz
Algorithm Hash digest
SHA256 1612865ea8a74c36f7cf1395a5453f922acfa196450fdcd7bd49e71d38b7d508
MD5 c173bc96bca9d6e75424927d60fa9fe1
BLAKE2b-256 ff18a60f613303bbee9738d4661f1b3750519bd903e722602a297981b544c593

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tencoinlib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8257ab8890bad0845520d58dd8c4a8f5758197d3d4f5da5bde636cb1657875c2
MD5 133e84955e130d31473b70b132cb3172
BLAKE2b-256 88b3ba6aa995bcc2e80d161d5841a6146b0ae5202e174125684f4861cff78ab4

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