{"id":23594361,"url":"https://github.com/ellipticsecure/python-ehsm-hd-wallet-example1","last_synced_at":"2025-05-07T22:07:40.173Z","repository":{"id":184446691,"uuid":"196251224","full_name":"ellipticSecure/python-ehsm-hd-wallet-example1","owner":"ellipticSecure","description":"Example code to show you how to sign data with the hierarchical deterministic (HD) wallet on the MIRkey Hardware Security Module","archived":false,"fork":false,"pushed_at":"2019-07-11T08:20:59.000Z","size":2,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T22:07:36.478Z","etag":null,"topics":["bip32","hsm","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ellipticSecure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-07-10T17:50:45.000Z","updated_at":"2024-01-19T10:26:29.000Z","dependencies_parsed_at":"2023-07-28T13:29:51.181Z","dependency_job_id":"af9406a7-1fd1-46ce-8cc6-99a8ed601bde","html_url":"https://github.com/ellipticSecure/python-ehsm-hd-wallet-example1","commit_stats":null,"previous_names":["ellipticsecure/python-ehsm-hd-wallet-example1"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellipticSecure%2Fpython-ehsm-hd-wallet-example1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellipticSecure%2Fpython-ehsm-hd-wallet-example1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellipticSecure%2Fpython-ehsm-hd-wallet-example1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellipticSecure%2Fpython-ehsm-hd-wallet-example1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ellipticSecure","download_url":"https://codeload.github.com/ellipticSecure/python-ehsm-hd-wallet-example1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961837,"owners_count":21832196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bip32","hsm","python"],"created_at":"2024-12-27T09:17:38.009Z","updated_at":"2025-05-07T22:07:40.148Z","avatar_url":"https://github.com/ellipticSecure.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## This example shows you how to sign data with the hierarchical deterministic (HD) wallet on the MIRkey Hardware Security Module\n\nPlease see the accompanying [how to guide](https://ellipticsecure.com/ehsm/how-to/2019/07/11/python-hd-wallet-example.html).\n\nThe example code can easily be converted into a utility to sign transactions offline/air-gapped or used on\nBitcoin transaction servers.\n\n## Preparation\n\n1. If you have not done so already, download and install the native shared library for your platform here: \n    [https://ellipticsecure.com/downloads/](https://ellipticsecure.com/downloads/)\n    \n    Important: Always verify the signature of the downloaded files\n\n2. Initialize the device and set a user PIN with the eHSM Manager or pkcs11 tool\n\n3. Install the ehsm Python wrapper\n\n    ```bash\n    pip install ehsm\n    ```\n\n## Example\n\nSigning a transaction hash with a BIP32 (Bitcoin etc.) derived key stored on\na MIRkey or eHSM device using the derivation path \"m/0/0\".\n\n```bash\n./hdwallet-example.py 0,0 30440220644ff4e8877ac01ba12e72b1c1dcfee67a4d932d28b721b1249eaf16\nEnter the device user PIN:\n...\n3045022100a26765f2e1709d2028a2ad17245d28d69bf5c5499bb32de6cd9deaff066496130220690bb4326446a413e37ad95072cb4754b559282083be079111c408ca57e85c17\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellipticsecure%2Fpython-ehsm-hd-wallet-example1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fellipticsecure%2Fpython-ehsm-hd-wallet-example1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellipticsecure%2Fpython-ehsm-hd-wallet-example1/lists"}