{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8" ], "description": "This Python3 module implements support for Elements transactions.\n\nIt builds on top, and is intended to be used along with python-bitcointx library.\n\n## Requirements\n\n- [python-bitcointx](https://github.com/Simplexum/python-bitcointx) (version >= 1.0.0)\n- [secp256k1-zkp](https://github.com/ElementsProject/secp256k1-zkp)\n\n Configure parameters for `secp256k1-zkp`:\n\n```\n ./configure --enable-experimental \\\n --enable-module-generator \\\n --enable-module-rangeproof \\\n --enable-module-surjectionproof \\\n --enable-module-ecdh \\\n --enable-module-recovery\n```\n\n## Usage:\n\nWith contextual switch to Elements parameters:\n\n```python\nimport os\nimport elementstx\nfrom bitcointx import ChainParams, get_current_chain_params\nfrom bitcointx.wallet import CCoinKey, CCoinExtKey, CCoinAddress, P2PKHCoinAddress\n\nwith ChainParams('elements'):\n k = CCoinExtKey.from_seed(os.urandom(32))\n a = P2PKHCoinAddress.from_pubkey(k.derive_path(\"m/0'/0'/1\").pub)\n print('example {} address: {}'.format(get_current_chain_params().name, a))\n assert CCoinAddress(str(a)) == a\n```\n\nWith global switch to Elements parameters:\n\n```python\nfrom elementstx import ElementsParams\nfrom bitcointx import select_chain_params\n\nselect_chain_params('elements')\n# or, using the chain params class directly\nselect_chain_params(ElementsParams)\n\n```\n\nWithout the switch of chain parameters:\n\n```python\nfrom elementstx.core import ElementsTransaction\n\ntransaction_data = read_tx_data()\ntx = CElementsTransaction.deserialze(transaction_data)\nprint(\"Number of txout witnesses:\", len(tx.wit.vtxoutwit))\n\n```\n\n# Example Code\n\nSee `examples/` directory.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Simplexum/python-elementstx", "keywords": "bitcoin,elements", "license": "", "maintainer": "", "maintainer_email": "", "name": "python-elementstx", "package_url": "https://pypi.org/project/python-elementstx/", "platform": "", "project_url": "https://pypi.org/project/python-elementstx/", "project_urls": { "Homepage": "https://github.com/Simplexum/python-elementstx" }, "release_url": "https://pypi.org/project/python-elementstx/0.1.1/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Elements module for python-bitcointx", "version": "0.1.1" }, "last_serial": 5826069, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "0a2c486ba0f54adeeb5a5d3bdc8f65b1", "sha256": "0ebc42bebe2eda650fdf8abf7e79021a0d867553a4d2b81d3b321a3381f18f5e" }, "downloads": -1, "filename": "python-elementstx-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0a2c486ba0f54adeeb5a5d3bdc8f65b1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 390791, "upload_time": "2019-09-13T14:45:03", "url": "https://files.pythonhosted.org/packages/d7/09/1bba8013249c1904015aedd3243e2e24dd3c2e791b6e966dc2b726325c19/python-elementstx-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0a2c486ba0f54adeeb5a5d3bdc8f65b1", "sha256": "0ebc42bebe2eda650fdf8abf7e79021a0d867553a4d2b81d3b321a3381f18f5e" }, "downloads": -1, "filename": "python-elementstx-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0a2c486ba0f54adeeb5a5d3bdc8f65b1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 390791, "upload_time": "2019-09-13T14:45:03", "url": "https://files.pythonhosted.org/packages/d7/09/1bba8013249c1904015aedd3243e2e24dd3c2e791b6e966dc2b726325c19/python-elementstx-0.1.1.tar.gz" } ] }